摘要: 1、VS2003新建DLL项目dllTest2、项目dllTest中添加脚本lib.h,代码如下:1 #ifndef LIB_H2 #define LIB_H3 int _stdcall add(int x,int y);4 int _cdecl mius(int x,int y);5 #endif 3、项目dllTest中添加脚本lib.cpp,代码如下: 1 #include "lib.h" 2 #include "windows.h" 3 #include "stdio.h" 4 5 BOOL APIENTRY DllMain( 阅读全文
posted @ 2013-10-25 15:23 Faint@LastStep 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 1、VS2003新建DLL项目dllTest2、项目dllTest中添加脚本lib.h,代码如下:1 #ifndef LIB_H2 #define LIB_H3 extern "C" int add(int x,int y);4 extern "C" int mius(int x,int y);5 #endif 3、项目dllTest中添加脚本lib.cpp,代码如下: 1 #include "lib.h" 2 #include "windows.h" 3 #include "stdio.h" 阅读全文
posted @ 2013-10-25 11:32 Faint@LastStep 阅读(896) 评论(0) 推荐(0) 编辑