Solved

Preprocessor directive in  borland builder

Posted on 2011-03-09
3
803 Views
Last Modified: 2012-05-11
I am trying to build a visual studio project using borland builder. The preprocessor  directive _MSC_VER used commonly with Visual Studio, does it work with Borland? If not why? Probably I am missing out on basics, so feel free to assume little knowledge in this area.
0
Comment
Question by:olmuser
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 125 total points
ID: 35084791
_MSC_VER is a preprocessor macro that part of the Microsoft C++ implementation. It is not part of the C++ standard so may or may not be available with your compiler.

http://msdn.microsoft.com/en-us/library/b0084kay.aspx
0
 
LVL 53

Assisted Solution

by:Infinity08
Infinity08 earned 125 total points
ID: 35084871
Since _MSC_VER is a macro that specifically gives the Visual C++ compiler version, it would be weird (and confusing) if a Borland compiler would support it (it's not a Visual C++ compiler after all).
The Borland C++ compiler uses the __BORLANDC__ macro for its version number.


That said, it has been known for some compilers (other than Visual C++) to support the _MSC_VER macro for one reason or another, but as fas as I know that support has been removed because it caused confusion.
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 35084913
Oops :) Forgot to refresh. Sorry.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question