摘要: 创建1. 新建工程 如:名为dll12. 添加C++源文件 名为:dll1.cpp 编写函数 int add(int a,int b){ return a+b;}3. 添加def文件 导出函数,防止名字改编 LIBRARY dll1EXPORTSadd4. 添加.h文件 供应用程序使用_declspec(dllimport) int add(int a,int b);使用以隐式链接为例1. 添加引入库文件(lib文件) 在 工程-->设置-->连接-->对象/库模块 中填入引入库文件名 dll1.lib2. 添加头文件 在使用dll文件中函数的地方,#include<d 阅读全文
posted @ 2011-06-23 09:20 JarvisChu 阅读(197) 评论(0) 推荐(0) 编辑