2010-10-11 17:26:01 +08:00
|
|
|
#include "winmain.h"
|
2010-10-12 17:15:44 +08:00
|
|
|
#include "TestApplication.h"
|
2010-10-11 17:26:01 +08:00
|
|
|
|
|
|
|
HINSTANCE g_hInstance;
|
|
|
|
|
|
|
|
int APIENTRY _tWinMain(HINSTANCE hInstance,
|
|
|
|
HINSTANCE hPrevInstance,
|
|
|
|
LPTSTR lpCmdLine,
|
|
|
|
int nCmdShow)
|
|
|
|
{
|
|
|
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
|
|
|
UNREFERENCED_PARAMETER(lpCmdLine);
|
|
|
|
|
|
|
|
g_hInstance = hInstance;
|
|
|
|
|
|
|
|
int nRet = 0;
|
2010-10-12 17:15:44 +08:00
|
|
|
TestApplication app;
|
|
|
|
if (app.InitInstance() && app.initCocos2d())
|
|
|
|
{
|
|
|
|
nRet = app.Run();
|
|
|
|
}
|
2010-10-11 17:26:01 +08:00
|
|
|
return nRet;
|
|
|
|
}
|