MFC框架仿真<一> #include "my.h" CMyWinApp theApp;/*起点->全局对象*/ void main() { CWinApp* pApp = AfxGetApp();/*返回对象地址*/ } View Code