怎样在另一个工程中使用DLL动态链接库?
一大梨 2001-09-22 02:03:18 我自己做了一个DLL文件,输出一个类,然后在另一个工程中使用该类,所有该做的我都做了,可为什么老是出现链接错误?那位高手能帮帮我?
以下时出现的链接错误:
--------------------Configuration: ex22b - Win32 Debug--------------------
Linking...
MainFrm.obj : error LNK2001: unresolved external symbol "public: static struct CRuntimeClass const CPersistentFrame::classCPersistentFrame" (?classCPersistentFrame@CPersistentFrame@@2UCRuntimeClass@@B)
MainFrm.obj : error LNK2001: unresolved external symbol "protected: static struct AFX_MSGMAP const CPersistentFrame::messageMap" (?messageMap@CPersistentFrame@@1UAFX_MSGMAP@@B)
MainFrm.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CPersistentFrame::ActivateFrame(int)" (?ActivateFrame@CPersistentFrame@@UAEXH@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "protected: virtual __thiscall CPersistentFrame::~CPersistentFrame(void)" (??1CPersistentFrame@@MAE@XZ)
MainFrm.obj : error LNK2001: unresolved external symbol "protected: __thiscall CPersistentFrame::CPersistentFrame(void)" (??0CPersistentFrame@@IAE@XZ)
Debug/ex22b.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.
ex22b.exe - 6 error(s), 0 warning(s)