Visual Studio Question

N

novickivan

Hi,

I realize this is not a C++ question, but I figure someone in this
group must know the answer.

If you are compiling C++ code in Visual Studio and you want to have a
macro #ifdef to detect the compile host... i.e.

#ifdef WIN_VISTA
#endif

Is there a predefined macro variable that can be checked?

Thanks,
Ivan Novick
http://www.novickscode.com
 
T

tharinda.gl

Hi,

I realize this is not a C++ question, but I figure someone in this
group must know the answer.

If you are compiling C++ code in Visual Studio and you want to have a
macro #ifdef to detect the compile host... i.e.

#ifdef WIN_VISTA
#endif

Is there a predefined macro variable that can be checked?

Thanks,
Ivan Novickhttp://www.novickscode.com

There is a macro called WINVER, you can use it with #if #endif
statement
 
B

Bo Persson

There is a macro called WINVER, you can use it with #if #endif
statement

That actually gives the *target* platform compiling for, but might
actually be more interesting anyway.

Why do you need the host type?


Bo Persson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top