函数库方提供的.h
#include <windows.h> #ifdef __cplusplus
extern "C"{
#endifHANDLE WINAPI Fun(char *a,unsigned int b); ////
hInst=LoadLibrary("xxx.dll");
typedef long (/*_stdcall*/ *DLL)(char *name, int param);
DLL MyFun=(DLL)GetProcAddress(hInst,"Fun");
if(!MyFun)
{
MessageBox("faile when load dll");
return;
}
HANDLE h;
h = Fun("WHY",1);
就错了,
这种dll应该怎么调啊?
#include <windows.h> #ifdef __cplusplus
extern "C"{
#endifHANDLE WINAPI Fun(char *a,unsigned int b); ////
hInst=LoadLibrary("xxx.dll");
typedef long (/*_stdcall*/ *DLL)(char *name, int param);
DLL MyFun=(DLL)GetProcAddress(hInst,"Fun");
if(!MyFun)
{
MessageBox("faile when load dll");
return;
}
HANDLE h;
h = Fun("WHY",1);
就错了,
这种dll应该怎么调啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货