新手:一个很菜的问题--如何继承一个CEdit控件。在线!
我建了一个新的类,如下:
#include <afxwin.h>
#include "stdafx.h"
#include "resource.h"
class CMyEdit :public CEdit
{
public:
CMyEdit();
virtual ~CMyEdit();
};
错误如下:
Compiling...
MyEdit.cpp
d:\workarea\myworkarea\vs6work\testprject_second\resource.h(17) : warning C4005: 'IDC_STATIC' : macro redefinition
c:\program files\microsoft visual studio\vc98\mfc\include\afxres.h(290) : see previous definition of 'IDC_STATIC'
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/TestPrject_Second.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Creating browse info file...
为什么?????
谢谢各位高手!!