草庐IT

DlgGapWindow

全部标签

c++ - MyClass::GetMessageMap() 和 MyClass::GetRuntimeClass (MSVC 2008) 的 MFC dlg 类链接错误

我复制了一个dlg框类的现有header(使用dlg类向导/mfc向导创建)。在我将cpp文件添加到项目之前,一切似乎都很顺利。现在我得到一些mfc魔术方法的奇怪链接错误:errorLNK2001:unresolvedexternalsymbol"public:virtualstructCRuntimeClass*__thiscallDlgGapWindow::GetRuntimeClass(void)const"(?GetRuntimeClass@DlgGapWindow@@UBEPAUCRuntimeClass@@XZ)errorLNK2001:unresolvedexternal