[求助]在VS2005运行不了的程序
#include <afxwin.h>
class CGenericApp : public CWinApp
{
public:
virtual BOOL InitInstance();
};
class CgenericWindow : public CFrameWnd
{
public:
CGenericWindow()
{
Create(NULL, "Generic");
}
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
DECLARE_MESSAGE_MAP()
};
BEGIN_MESSAGE_MAP(CGenericWindow, CFrameWi\nd)
ON_WM_LBUTTONDOWN()
END_MESSAGE_MAP()
void CGenericWindow::OnLButtonDown(UINT nFlags, CPoint point)
{
MessageBos("Left mouse button pressed...", NULL, MB_OK):
}
BOOL CGenericApp::InitInstance()
{
m_pMainWnd = new CGenericWindow();
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}
CGenericApp GenericApp;
运行时出现以下提示:
d:\microsoft visual studio 8\vc\atlmfc\include\afx.h(24) : fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
这是什么意思??