void f(void* p) { DWORD dwAddress((DWORD) p); // would cut the value to its low part without any warning :) // DWORD_PTR dwAddress(reinterpret_cast<dword_ptr>(p)); // correct: the adapted type is using cout << dwAddress; }</dword_ptr>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)