I think you want _MSC_VER
http://msdn.microsoft.com/library/en...ned_Macros.asp
-Dino
--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m
"msnews.microsoft.com" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>