下面这段代码想生成一个空白窗口, 在vc++6.0enterprise上运行没有报错和警告,但是运行不了,求大神帮忙啊
#include "afxwin.h"
class CMinApp:public CWinApp
{
public:
virtual BOOL lnitlnstance();
};
BOOL CMinApp::lnitlnstance()
{
CFrameWnd* pFrame = new CFrameWnd;
pFrame->Create(0, _T("最小MFC程序"));
pFrame->ShowWindow(SW_SHOWMAXIMIZED);
pFrame->UpdateWindow();
AfxGetApp()->m_pMainWnd = pFrame;
system("pause");
return 0;
}
CWinApp MyApp;