- Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathwinmain.cpp
More file actions
Latest commit
19 lines (15 loc) · 424 Bytes
/
Copy pathwinmain.cpp
File metadata and controls
19 lines (15 loc) · 424 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include"winapi.h"
#ifndef MINGW
#include<crtdbg.h>
#endif
usingnamespaceWinAPI;
intWINAPIWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd )
{
#ifndef MINGW
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
#endif
ApplicationBase* p_application = ApplicationBase::p_application;
if ( p_application != 0 )
p_application->Run();
return0;
}