摘要: DLL可以理解为具有一定功能的可以嵌入到可执行程序中的程序片段。与lib文件一样,DLL在VS中可以有两种编译方式:C编译、C++编译。个人感觉动态加载DLL文件,使用DLL内部函数的时候倒都是一样的。一、C编译方式。 A:dll的生成 1 //File of "sub.h" 2 #ifndef SUB_H 3 #define SUB_H 4 extern "C" int __declspec(dllexport)sub(int x, int y); 5 #endif 6 7 //File of "sub.cpp" 8 #includ 阅读全文
posted @ 2013-07-27 10:25 joythink89 阅读(439) 评论(0) 推荐(0) 编辑