Data Types:
WCHAR AdapterName[8192];
// Question 1: WCHAR is only a C datatype yes?
ULONG AdapterLength = 4096;
function prototype is:
BOOLEAN PacketGetAdapterNames(PTSTR pStr,PULONG BufferSize);
envoking function via
if(PacketGetAdapterNames(AdapterName,&AdapterLengt h)==FALSE)
{
printf("Unable to retrieve the list of the adapters!\n");
return -1;
}
Visual C++ 6 error is
types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
how do i insert such a cast in the condition of the if block?
If i define WCHAR AdapterName as char AdapterName,
app runs but
not correctly..
trying to port app from c to c++