--- /dev/null
+///////////////////////////////////////\r
+// main.cpp\r
+\r
+#include "stdafx.h"\r
+#include "DialogDemoApp.h"\r
+\r
+\r
+int APIENTRY WinMain(HINSTANCE, HINSTANCE, LPSTR, int)\r
+{\r
+ try\r
+ {\r
+ // Start Win32++\r
+ CDialogDemoApp theApp;\r
+\r
+ // Run the application\r
+ return theApp.Run();\r
+ }\r
+ \r
+ // catch all exceptions inherited from std::exception\r
+ catch (std::exception &e)\r
+ {\r
+ // Process the exception and quit \r
+ e.what();\r
+ return -1;\r
+ }\r
+}\r