生成方法(代码示例):
.C文件:
__declspec(dllexport)
int mymax(int a,int b){
return a + b;
}
调用方法:
#include<stdio.h>
#pragma comment(lib,"Dll.lib")
int mymax(int a,int b);
int main(){
printf("调用动态dll函数的结果:%d",mymax(5,6));
getchar();
return 0;
}
具体网址:https://blog.csdn.net/u014175572/article/details/50728783