急怎么用c dll封装另外一个C dll? 不做任何操作
急,如何用c dll封装另外一个C dll? 不做任何操作?
a.dll里面
int functionA(int p1,int p2);
实现 在b.dll里面
extern __declspec(dllimport) int __stdcall functionA(Handle h1,int p1,int p2);
__declspec(dllexport) int __stdcall functionB(Handle h1,int p1,int p2);
但 functionB 和 functionA一样的,不做任何操作
------解决方案--------------------
方法1:def文件
LIBRARY B
EXPORTS
functionB=A.functionA
方法2:连接器参数
/export:functionB=A.functionA
a.dll里面
int functionA(int p1,int p2);
实现 在b.dll里面
extern __declspec(dllimport) int __stdcall functionA(Handle h1,int p1,int p2);
__declspec(dllexport) int __stdcall functionB(Handle h1,int p1,int p2);
但 functionB 和 functionA一样的,不做任何操作
------解决方案--------------------
方法1:def文件
LIBRARY B
EXPORTS
functionB=A.functionA
方法2:连接器参数
/export:functionB=A.functionA