int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { StartDebugLog(); //メインスレッドに対するCOMの初期化 CoInitialize(NULL); theApp.InitInstance(); CoUninitialize(); StopDebugLog(); return 0; }
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { theApp.InitInstance(); return 0; }