class CWinApp
{
public:
CWinApp * m_pCurrentWinApp;\
CFrameWnd * m_pMainWnd;
CWinApp();
virtual BOOL InitInstance( int nCmdShow);
int Run();
}CWinApp::CWinApp()
{
m_pCurrentWinApp = this;
}
{
public:
CWinApp * m_pCurrentWinApp;\
CFrameWnd * m_pMainWnd;
CWinApp();
virtual BOOL InitInstance( int nCmdShow);
int Run();
}CWinApp::CWinApp()
{
m_pCurrentWinApp = this;
}
{
// ...
}; // 注意这个分号