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

31 lines
756 B
C++

#include "AppDelegate.h"
[! if CCX_USE_UI_RESOURCE]
#include "[!output PROJECT_NAME]_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;
[! if CCX_USE_UI_RESOURCE]
app.WM_SetResourceEntry(&[!output PROJECT_NAME]ResourceEntry);
[! endif]
app.Run();
return 1;
}