各位大侠,小弟在编译一个程序。
在使用“use MFC in a Shared DLL”时编译通过;使用时“use mfc in a static library”编译失败。
大侠出出主意。错误信息:
dataforalldevice.obj : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "public: __thiscall CDataForAllDevice::CDataForAllDevice(char const *,char const *)" (??0CDataForAllDevice@@QAE@PBD0@Z)
1>instrumentserver.obj : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
1>profile.obj : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
1>serial.obj : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
1>instrsrvservice.obj : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
1>instrumentserver.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function "public: int __thiscall CPrivate::ErrorHandler(int)const " (?ErrorHandler@CPrivate@@QBEHH@Z)
1>pnpserial.obj : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
1>profile.obj : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24