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