我刚学VC++,按照参考书写了一个显示位图的程序,编译时出现下面两个错误:
DIB.OBJ : error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CDIB::GetRuntimeClass(void)const " 
(?GetRuntimeClass@CDIB@@UBEPAUCRuntimeClass@@XZ)
Debug/See.exe : fatal error LNK1120: 1 unresolved externals不知该怎么办,请高手指教,多谢!!!

解决方案 »

  1.   

    GetRuntimeClass()函数没找到,使用了MFC。
      

  2.   

    把你的代码全部贴出来
    可能是lib文件没有加入
      

  3.   

    如果它希望输出CRuntimeClass类型的对象或者资源(Resources),则需要提供一个初始化函数来创建一个CDynLinkLibrary对象。并且,有必要把初始化函数输出。
    http://tech.enet.com.cn/document/20001011/2000101121104501.shtml
      

  4.   

    估计你是没把人家的类包含进来。#inlcude "cdib.h"