Merge branch 'master' of git.ucc.asn.au:/matches/honours
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / tutorials / Tutorial2 / main.cpp
1 ///////////////////////////////////\r
2 // main.cpp\r
3 \r
4 // The directory of the include directory should also be added to project's \r
5 //  additional include directories.\r
6 \r
7 #include "wincore.h"\r
8 \r
9 \r
10 class CView : public CWnd\r
11 {\r
12 public:\r
13         CView() {}\r
14         virtual ~CView() {}\r
15 };\r
16 \r
17 \r
18 class CSimpleApp : public CWinApp\r
19 {\r
20 public:\r
21         CSimpleApp() {}\r
22     virtual ~CSimpleApp() {}\r
23         virtual BOOL InitInstance();\r
24 \r
25 private:\r
26     CView m_View;\r
27 };\r
28 \r
29 BOOL CSimpleApp::InitInstance()\r
30 {\r
31     // Create the Window\r
32     m_View.Create();\r
33 \r
34         return TRUE;\r
35 }\r
36 \r
37 // Note:  This application doesn't end when the window is closed\r
38 \r
39 int APIENTRY WinMain(HINSTANCE, HINSTANCE, LPSTR, int)\r
40 {\r
41     // Start Win32++\r
42     CSimpleApp MyApp;\r
43 \r
44         // Run the application\r
45     return MyApp.Run();\r
46 }\r

UCC git Repository :: git.ucc.asn.au