#include <windows.h>
#include <winbase.h>
#include <stdio.h>
typedef char (*MYPROC)(char*, int);
int main(){
HINSTANCE LibHandle;
MYPROC ProcAdd;
char dllbuf[] = "csserver.dll";
char sysbuf[] = "get";
char ip[]="218.137.208.01";
int xx=27005;
LibHandle = LoadLibrary((LPCWSTR)dllbuf);
ProcAdd = (MYPROC)GetProcAddress(LibHandle, sysbuf);
printf("%s\n",(ProcAdd)(ip,xx));
}
= =可以编译 但运行后是内存无法为read
这是怎么回事啊...
360度跪求前辈们指点
#include <winbase.h>
#include <stdio.h>
typedef char (*MYPROC)(char*, int);
int main(){
HINSTANCE LibHandle;
MYPROC ProcAdd;
char dllbuf[] = "csserver.dll";
char sysbuf[] = "get";
char ip[]="218.137.208.01";
int xx=27005;
LibHandle = LoadLibrary((LPCWSTR)dllbuf);
ProcAdd = (MYPROC)GetProcAddress(LibHandle, sysbuf);
printf("%s\n",(ProcAdd)(ip,xx));
}
= =可以编译 但运行后是内存无法为read
这是怎么回事啊...
360度跪求前辈们指点