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。
奇怪。