#ifndef APP__H_ #define APP__H_ class HApp : public HObject { public: static HApp * m_pApp; // HApp(); virtual ~HApp() {} virtual int OnMain(int nArgc, char ** pArgv) = 0; virtual void OnExit(int nCode) = 0; }; #define APPINIT(APP_CLASS_NAME) APP_CLASS_NAME __g_main$Application$Instance_; #define HAPP() (&__g_main$Application$Instance_) #endif // APP__H_