Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 9th, 2005, 11:34 PM   #1
Komodo
Hobbyist Programmer
 
Komodo's Avatar
 
Join Date: May 2005
Location: Scranton, PA
Posts: 112
Rep Power: 0 Komodo is an unknown quantity at this point
Send a message via AIM to Komodo Send a message via MSN to Komodo
Visual C++

Is it worth it to use Visual C++, or should I just go with standard C++?
Komodo is offline   Reply With Quote
Old Jul 10th, 2005, 12:47 AM   #2
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
depends what you program for? see this thread it might help:

http://www.programmingforums.org/for...learn+language
OpenLoop is offline   Reply With Quote
Old Jul 10th, 2005, 12:58 AM   #3
Navid
Hobbyist Programmer
 
Navid's Avatar
 
Join Date: Feb 2005
Location: Canada
Posts: 187
Rep Power: 4 Navid is on a distinguished road
Send a message via MSN to Navid
I'm confused here, I thought Visual C++ is microsoft's compiler, not a language...
maybe i'm not clear on what Komodo ment by "standard c++".
Navid is offline   Reply With Quote
Old Jul 10th, 2005, 3:57 AM   #4
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
Visual C++ is Microsoft's C++ compiler. Older versions (up until at least version 6) were well known for lack of compliance with the C++ standard. With more recent versions (version 7 and .NET) Microsoft has made a concerted effort to improve standard compliance. In addition, Visual C++ [in all versions] also supports several extensions (both language extensions, including additional keywords and non-standard libraries such as MFC) that help with development for windows applications.

The basic rule is, if you want to program in "standard C++", you will use only language and library features that are in the C++ standard. All C++ compilers support that to some degree, but no compilers (or their libraries) are 100% perfect. The advantage of programming in "standard C++" is that your code would be portable to any compliant compiler. However, we live in the real world: compilers are imperfect, so we have to use a subset of the language to ensure portability. In addition, a lot of us want to do things that go beyond the C++ standard (eg graphical user interface, multi-threading, database access, etc etc) and which are often not portable.

In the end, as OpenLoop said, the choice of compiler (and libraries) depends on what you want to achieve. For some of those things, Visual C++ is a good choice. For others, it is not.
grumpy is offline   Reply With Quote
Old Jul 10th, 2005, 4:32 AM   #5
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
Isn't comeau's compiler "perfect" in that it follows the standard to the letter?

I could be wrong.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Jul 10th, 2005, 5:06 AM   #6
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
Comeau's compiler is often used as a benchmark, as it is quite close, and improving all the time. However, not even Comeau claim it is perfect - they just state, to their credit, that they are working hard to get 100% compliance. IIRC, Comeau C++'s only known shortcomings (relative to the C++ standard) are that it doesn't support the export keyword (which isn't a big sin, very few compilers actually do, as that feature is one of the more poorly thought out aspects of the C++ standard - being a political compromise rather than a technical one, IMHO) and a couple of other advanced features associated with templates.
grumpy is offline   Reply With Quote
Old Jul 10th, 2005, 5:09 AM   #7
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
http://www.comeaucomputing.com/4.0/d...an/export.html

They do support export...
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:36 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC