I need some help solving the below warning(s). As seen in the warning I'm trying to cast between a LONG and a class pointer and back again. Printing the sizeof of both types gives the same size (4), so why complain about truncation? Signed bit in LONG?
I'm using VS2003 on a 32-bit machine if that helps!Code:WindowBaseFrame.cpp(82) : warning C4311: 'reinterpret_cast' : pointer truncation from 'CWindowBaseFrame *const ' to 'LONG' WindowBaseFrame.cpp(286) : warning C4312: 'reinterpret_cast' : conversion from 'LONG' to 'CWindowBaseFrame *' of greater size