Example #1
0
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
                     LPSTR lpCmdLine, int nCmdShow)
{
	char		*szCommandLine;

	// Set hinst, and zero hWnd
	g_hInstance		= hInstance;
	g_hWnd			= NULL;

	// Init CmdLine (Get full command line -- same as in main())
	szCommandLine = GetCommandLine();
	g_oCmdLine.SetCmdLine(szCommandLine);

	// Run the app
	if (g_oApp.Create(nCmdShow) == FALSE)
		return 1;
	else
		return 0;

} // WinMain()