dll中定义了一个函数
int _stdcall GetDoomInfo(int port, int address, int* cardNo, int* password,int* doomInfo);
外部程序调用没有问题
可是在定义一个函数
int _stdcall GetCardInfo(int port, int address, int* cardNo, int* password,int* doomInfo)
{
int get_DoomInfo=GetDoomInfo(port,address,cardNo,password,doomInfo);
if(get_DoomInfo != 0)
return get_DoomInfo;
}
每次调用这个函数的时候就会内存出错,说有快地方不能read。
奇怪。
int _stdcall GetDoomInfo(int port, int address, int* cardNo, int* password,int* doomInfo);
外部程序调用没有问题
可是在定义一个函数
int _stdcall GetCardInfo(int port, int address, int* cardNo, int* password,int* doomInfo)
{
int get_DoomInfo=GetDoomInfo(port,address,cardNo,password,doomInfo);
if(get_DoomInfo != 0)
return get_DoomInfo;
}
每次调用这个函数的时候就会内存出错,说有快地方不能read。
奇怪。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货