vs2010中添加dll文件
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;
}