#include<afxwin.h>class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance();
};class CMyFrame : public CFrameWnd
{
public:CMyFrame();
};BOOL CMyApp::InitInstance()
{
m_pMainWnd=new CMyFrame();
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}CMyFrame::CMyFrame()
{
Create(NULL,"Hello , World",WS_OVERLAPPEDWINDOW,rectDefault);
}
   
 CMyApp Hello;
 
//重新建立多个新文件都不可以~~
//如何解决???--------------------Configuration: Hello - Win32 Debug--------------------
Compiling...
Hello.cpp
Linking...
libcmtd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Hello.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.Hello.exe - 2 error(s), 0 warning(s)