943,859 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 7634
  • C++ RSS
Nov 5th, 2008
0

Classic C++ VS Visual C++

Expand Post »
Hi all,
I'm a C++ programmer and now about to use Visual C++. May I know the difference in terms of functionalities? will my code written in classic C++ run on Visual C++?
thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cooljeff1379 is offline Offline
2 posts
since Nov 2008
Nov 5th, 2008
0

Re: Classic C++ VS Visual C++

Visual C++ is C++, with the Visual Studio IDE. You should not encounter any significant differences between code written for other current implementations of C++.

By Classic C++, I'm assuming you mean any of the other compilers such as gcc, MinGW, current Borland products, and not some old, out of standards version.
Reputation Points: 1268
Solved Threads: 228
Posting Virtuoso
vmanes is offline Offline
1,895 posts
since Aug 2007
Nov 5th, 2008
0

Re: Classic C++ VS Visual C++

That's true if not counting monstrous MS NET "extensions" for "managed" codes...
Reputation Points: 1234
Solved Threads: 347
Postaholic
ArkM is offline Offline
2,001 posts
since Jul 2008
Nov 5th, 2008
0

Re: Classic C++ VS Visual C++

There are two fundamentally different kinds of C++ applications you can develop with Visual C++ 2008.
You can write applications that natively execute on your computer. These applications referred to as native C++ programs. You write native C++ programs in the version of C++ that is defined by the ISO/ANSI (International Standards Organization/American National Standards Institute) language standard. You can also write applications to run under the control of the CLR in an extended version of C++ called C++/CLI. These programs referred to as CLR programs, or C++/CLI programs.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ALAZHARY is offline Offline
14 posts
since Jul 2006
Nov 6th, 2008
0

Re: Classic C++ VS Visual C++

Thank you everyone... it's nice to know that there are people who are very willing to share their knowledge...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cooljeff1379 is offline Offline
2 posts
since Nov 2008
Nov 6th, 2008
0

Re: Classic C++ VS Visual C++

Well, C++ is just a language, with quite a small standard library, but with A LOT of provided compilers, frameworks and third party libraries. From my point of view ( and many others, I think ) g++ is the best compiler for C++. Visual C++ is quite a generic name: it's the msvc compiler, the visual studio IDE and a library/framework that wraps winapi to build windows graphical applications( aka MFC ).
Learning Visual C++ actually means learning how to use the MFC framework and Visual Studio IDE, that, from my point of view is quite useless: 1. it costs a lot; 2. it's not portable on other os ( of course, MS policy ) 3. as far as I know Microsoft outsourced MFC
About the MSVC compiler... it generates slower machinecode than g++ and a thing I recently noticed, it doesn't quite respect the c++ standard ( thing I noticed is that exception specifications are not treated by the compiler, even if you have a throw() function that DOES throw, unexpected() is never called )
The only bright side of "Visual C++" is the Visual Studio IDE, that from my point of view is kind of the best ide right now.
If you do want to do GUI developement in C++ I would suggest using portable libraries: Qt4 or GTK++ .

About .NET's C++/CLI... This is simply not C++. It's simply another language. If you do want to develop .NET apps I would suggest learning C#.
kux
Reputation Points: 66
Solved Threads: 11
Junior Poster
kux is offline Offline
119 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: char to hexidecimal
Next Thread in C++ Forum Timeline: C++ Counters Not Working





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC