怎样编写窗口程序
#include<stdafx.h>
#include<afxwin.h>
class CMinApp:public CWinApp
{
public:virtual BOOL Initlnstance();
};
BOOL CMinApp::Initlnstance()
{
CFrameWnd*pFrame=new CFrameWnd;
pFrame->Create(0,_T("A Minimal MFC program"));
pFrame->ShowWindow(SW_SHOWMAXIMIZED);
pFrame->UpdateWindow();
AfxGetApp()->m_pMainWnd=pFrame;
return TRUE;
}
int main(array<System::String ^> ^args)
{
CMinApp MyApp;
return 0;
}
程序错在那里?谢谢