There are several new integer types in the Windows API for supporting Win64. They were not always supported; for example, they are not in MSVC6 .
How to write a #if condition to determine if these types are supported with <windows.h> ?
(My code needs to be compiled under different versions of Microsoft Visual C ++, including MSVC6. Therefore, I need to provide my own definitions of these types with #if to disable them in new compilers).
(For search engines, a complete list of types: DWORD_PTR, INT_PTR, LONG_PTR, UINT_PTR, ULONG_PTR)
c ++ c windows visual-c ++ win64
user9876 Apr 27 '10 at 17:01 2010-04-27 17:01
source share