在vc6.0 中通过..在.net中却提示错误.....赐教....
在vc6.0 中通过..在.net中却提示错误.....赐教....
char * icmp_data,*recvbuf;
icmp_data = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, MAX_PACKET);
recvbuf = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, MAX_PACKET);
错误提示:
e:\C++ test\PingTest\PingTest\PingTest.cpp(227) : error C2440: “=” : 无法从“LPVOID”转换为“char *”
从“void*”到指向非“void”的指针的转换要求显式类型转换
e:\C++ test\PingTest\PingTest\PingTest.cpp(228) : error C2440: “=” : 无法从“LPVOID”转换为“char *”
从“void*”到指向非“void”的指针的转换要求显式类型转换