Automatic detection of the 32/64 bit character of my executables.

T

Ton Epskamp1

Some of my C++ code is depending on the 32/64-bit character of my executables. Solving this by #defining "x86" or "x64" will require adjusting the appropriate include file again and again. I tried "x64" without #defining it without any success. Perhaps WIN32/64? I would prefer an automatic detection perhaps by the program's Propertiies. I suppose in an emergency there might be a function call returning an appropriate value. I would consider this an emergency but I don't know any appropriate function Can any more experienced coder help me?

Continue reading...
 
Back
Top Bottom