Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Preprocessor directive in  borland builder

Posted on 2011-03-09
3
805 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

789 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