axmol/template/CCXAppWiz.vs/CCXAppWiz.uphone/Templates/1033/uphone/main.cpp

28 lines
790 B
C++
Raw Normal View History

#include "AppDelegate.h"
2010-11-18 15:46:59 +08:00
[! if CCX_USE_UI_RESOURCE]
#include "[!output PROJECT_NAME_LOWER]_res_c.h"
const ResourceRegisterEntry ResRegList_[!output PROJECT_NAME][] =
{
TG_RESOURCE_DEFINE
};
extern const AppResourceEntry [!output PROJECT_NAME]ResourceEntry =
{
(ResourceRegisterEntry*)ResRegList_[!output PROJECT_NAME], // res list in this app
sizeof(ResRegList_[!output PROJECT_NAME]) / sizeof(ResourceRegisterEntry), //number of item in res
};
[! endif]
Int32 TG3AppMain(const TUChar * pAppID, UInt32 nCmd, void * pCmdParam)
{
AppDelegate app;
2010-11-18 15:46:59 +08:00
[! if CCX_USE_UI_RESOURCE]
app.WM_SetResourceEntry(&[!output PROJECT_NAME]ResourceEntry);
2010-11-18 15:46:59 +08:00
[! endif]
app.Run();
return 1;
}