第三方DLL库调用
现在手里只有第三方的DLL库(C语音写的),没有.h lib等,通过他们的文档知道函数原型,现在在C++中想隐式调用DLL中的函数,该怎么办?
对应的DLL以及copy在源文件的同一个目录下
比如他的函数原型为 int Connect(const char*Parameters);
我用extern "C" __declspec(dllimport)int Connect(const char*Parameters);
出现错误:
Error 1 error LNK2001: unresolved external symbol __imp_Connect C:\Users\chun\Desktop\TestFace5\TestFace\TestFace\TestFace.obj TestFace
Error 2 error LNK1120: 1 unresolved externals C:\Users\chun\Desktop\TestFace5\TestFace\x64\Release\TestFace.exe 1 1 TestFace
求各位大神指教,在线等。