#include "afxwin.h"
#include "lkh.h"////////////////////////////////////////
class wp: public CWinApp ///
{
public:
BOOL InitInstance();
};
class wn:public CFrameWnd
{
public:
wn();
DECLARE_MESSAGE_MAP()
};/////////////////////////////////////////wp lkh;
BOOL wp:: InitInstance()
{
m_pMainWnd=new wn();
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}
 wn::wn()
{
Create(NULL,"HELLO",WS_OVERLAPPEDWINDOW,rectDefault,NULL,"f");
}
Linking...
lkh.obj : error LNK2001: unresolved external symbol "protected: virtual struct AFX_MSGMAP const * __thiscall wn::GetMessageMap(void)const " (?GetMessageMap@wn@@MBEPBUAFX_MSGMAP@@XZ)
Debug/M.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.M.exe - 2 error(s), 0 warning(s)是不是我的设置不正确,请高手明示