How to determine VS version?

  • Thread starter Thread starter msnews.microsoft.com
  • Start date Start date
M

msnews.microsoft.com

I need to determine which version of Visual Studio my code is being compiled
in.
I have some C++ functions that must be able to compile in both VS 6 and VS
..NET 2003. The code in the functions must be slightly different in the 2
versions of VS.
I would like to do something like:

#ifdef VS_NET_2003
do this
#elif VS_6
do that
#endif

Does VS come with some standard preprocessor defines that I can use?

TIA,
Kim Hellan
 
Back
Top