1.更改设置
1.1 project->properties->configuration properties->C/C++->General->Addtional Include Directories->放dll文件的路径
1.2 project->properties->configuration properties->Linker->General->Addtional Library Directories->放dll文件的路径
1.3 project->properties->configuration properties->Linker->Input->Additional Dependencies
2. 代码引用
2.1 HINSTANCE hDLL;
hDLL=NULL;
hDLL=LoadLibrary("*.dll");
if( NULL == hDLL )
{
fprintf(stderr,"Error loading *.DLL");
return -1;
}
参考:
https://www.cnblogs.com/deadwood-2016/p/5533446.html
标签:hDLL,project,vs2010,dll,问题,编译,configuration,properties From: https://www.cnblogs.com/rebrobot/p/18027604