求助:再向各位大哥请教两个问题,谢谢!
请教:
问题1:
我新建了一个 Win32 Application 工程 test16
并且创建一个 名为: Application 的 .cpp 文件。
然后在 Application.cpp 中输入:
#include "afxwin.h"
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance();
};
class CMainFrame : public CFrameWnd
{
CMyApp myApp;
};
BOOL CMyApp::InitInstance()
{
m_pMainWnd=new CMainFrame;
((CMainFrame*)m_pMainWnd)->Create(NULL,"the mfc application");
m_pMainWnd->ShowWindow(m_nCmdShow);
return TRUE;
}
我 Build 时提示这样的错误:
eleting intermediate files and output files for project 'test16 - Win32 Debug'.
--------------------Configuration: test16 - Win32 Debug--------------------
Compiling...
Application.cpp
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/test16.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
test16.exe - 3 error(s), 0 warning(s)
各位大哥,我是错误在哪里呢?
是不是还有什么头文件没有添加上来呢?
还有一个是:我照着书上的一个例子来的。
我还有 第四步:田加 MFC 没有做。
是不是因为我没有添加 MFC 支持,才出现上面的错误呢?
问题2:
我打开 classwizard
可是在 class name 下面找不到 CMenuView 类
各位大哥,这是什么原因啊?
谢谢!