> I am developing a product , that I would like to compile
> in different development environments.
[quoted text clipped - 11 lines]
>
> I used the symbol - ' __VISUALC__ '. That does not seem to help.
The symbole is _MSC_VER, and it's defined for all versions of Visual C++.
The value depends on the version you're compiling with.
For VC6 it will be 1200
For VC7 it will be 1300
For VC7.1 it will be 1310
For VC8 it will be 1400
So you want to write something line
#if defined(_MSC_VER) && (_MSC_VER >= 1310)
#include <special header file>
#endif
HTH
-cd
Jochen Kalmbach - 14 Oct 2004 06:42 GMT
>> I am developing a product , that I would like to compile
>> in different development environments.
[quoted text clipped - 6 lines]
> For VC7.1 it will be 1310
> For VC8 it will be 1400
For older values of _MSC_VER see:
INFO: Predefined Identifiers in Microsoft C and C++
http://support.microsoft.com/kb/q65472/
You should also be aware of the fact that some other compilers also define
_MSC_VER (like Intel).
See: Why does Intel C++ Compiler define _MSC_VER?
http://softwareforums.intel.com/ids/board/message?board.id=16&message.id=
1811

Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/