I need help to compile our code using 64-bit compiler. Our software code has been compiled using Visual Studio Win32 compiler. But when I tried to compile using windows x64 compiler I get lot of errors. For example,
I get error that GCL_HBRBACKGROUND is undefined but it runs fine on windows 32 compiler. I might need to use GCLP_HBRBACKGROUND to compile correctly on x64 compiler.
So, my question is that is there any way that I can compile the same code or with using macros such as
on both Win32 and x64 compiler instead of having different copies of code, one for Win32 and one for x64.
for you. So you only have to use proper definitions for both Win32 and x64 compilers such as GCLP_HBRBACKGROUND instead of GCL_HBRBACKGROUND,
SetClassLongPtr instead of SetClassLong,
DWORD_PTR instead of DWORD,
ULONG_PTR instead of ULONG,
and so on...
Last edited by VictorN; July 18th, 2012 at 08:38 AM.