我试图编译它并得到了错误,例如:
Error 4 error C2440: 'initializing' : cannot convert from 'void *' to 'char *'
此代码取自此处。为什么它不起作用?
DWORD dwRead=0;
char *lpData = (VOID*)GlobalAlloc(GMEM_FIXED, MAX_READ),
我试图编译它并得到了错误,例如:
Error 4 error C2440: 'initializing' : cannot convert from 'void *' to 'char *'
此代码取自此处。为什么它不起作用?
DWORD dwRead=0;
char *lpData = (VOID*)GlobalAlloc(GMEM_FIXED, MAX_READ),