- Mar 30, 2004
- 1,275
- 0
- 76
Hi, I am interested in knowing compiler version before compile the program, how can I do that?
For example, I have both VC6 (Visual Studio 6) and VC8/? (Visual Studion 2005), now some of the functions are deprecated in latest version of VS, such as "fopen." VS 2005 asks me to use fopen_s instead of fopen.
To resolve this problem, I can make some changes in the code, so that it will run on both version without any warnings or errors.
So how can I determine compiler version of C++?
Thanks,
Neil.
For example, I have both VC6 (Visual Studio 6) and VC8/? (Visual Studion 2005), now some of the functions are deprecated in latest version of VS, such as "fopen." VS 2005 asks me to use fopen_s instead of fopen.
To resolve this problem, I can make some changes in the code, so that it will run on both version without any warnings or errors.
So how can I determine compiler version of C++?
Thanks,
Neil.