Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2004

Tip: Looking for answers? Try searching our database.

is _MSC_VER broken??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jm - 10 Jun 2004 17:15 GMT
Hello,

It appears the compiler #define _MSC_VER is broken under .NET, even though
when "mousing over" the _MSC_VER it says it's #def'd as 1300. That's exactly
what I'd expect. However, when I compile code that uses it -

#if _MSC_VER == 1200
// some code here
#elif _MSC_VER == 1300
// somemore code
#endif

     OR

// let's make an intentional error.....
#if _MSC_VER == 1300
badbad = 5
#endif

.NET won't see the code for either of the examples. Is this a known bug? And
is there a reasonable work-around?

Thanks!

jm
tom_usenet - 10 Jun 2004 18:16 GMT
>Hello,
>
[quoted text clipped - 17 lines]
>.NET won't see the code for either of the examples. Is this a known bug? And
>is there a reasonable work-around?

_MSC_VER is 1310 in VC.NET 2003, 1300 in VC.NET 2002. The mouse hover
seems to have a bug - I just tried it on 2003, and I saw "1300" too.

Tom
Signature

C++ FAQ: http://www.parashift.com/c++-faq-lite/
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html

jm - 10 Jun 2004 19:22 GMT
Tom,

Thanks for the help! Too bad MS didn't have that info in the KB.

thanks again!
j

> >Hello,
> >
[quoted text clipped - 22 lines]
>
> Tom

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.