2 u010816417 u010816417 于 2014.02.10 09:14 提问

求高手解决:0xC0000005: 写入位置 0x00000064 时发生访问冲突

typedef int (_stdcall*FUNA)(unsigned short Code,char* lpData,int lpDatalen);
typedef int (_stdcall*FUNB)(char *lpBuf);

const char * GetProtocol = "GetProtocolData";
const char * GetReport = "GetReportError";
HINSTANCE HDLL = LoadLibrary(_T("test.dll"));
FUNA fp = FUNA(GetProcAddress(HDLL,GetProtocol));
FUNB fb = FUNB(GetProcAddress(HDLL,GetReport));

unsigned short cord = 0x13;
char ch[100] = {0};
int iserror= fp(cord,ch,100);//此处出现0xC0000005: 写入位置 0x00000064 时发生访问冲突

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!