error LNK2019: unresolved external symbol "__declspec(dllimport)
error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl skinppLoadSkin(wchar_t *,int)" (__imp_?skinppLoadSkin@@YAHPA_WH@Z) referenced in function "public: virtual int __thiscall CRFMSApp::InitInstance(void)" (?InitInstance@CRFMSApp@@UAEHXZ)
怎么办?
[解决办法]
没加载lib文件。。。
[解决办法]
你dll导出函数没有被设为导出在dll要导出的函数前加上__declspec(dllexport)
[解决办法]
出现这种错误,建议看看下面几个选项:
(VS2005)
1、Project1 Properties -->Conifiguration Properties -->General --> Character Set;
2、Project1 Properties -->Conifiguration Properties -->C/C++
-->Preconpiled Headers-->Create/User preconpiled Header
[解决办法]
用VC6生成的LIB在VC6下用是正常的,却不能在Vs2005中使用。
你应该用VS2005再生成一个LIB。
如果是DLL的导出涵数是C的话,你可以用动态加载DLL的方式
[解决办法]
如果是这种情况,最好是在VS2008环境中重编skin++代码,因为VS2008中对C++函数的包装跟VC6不一样。