Archived

This topic is now archived and is closed to further replies.

compfanatic

What is the difference between Visual C++ and C++?

Recommended Posts

keyword: Visual
C++ is simply C with some more advanced stuff, while Visual C++ is a totally different system that deals with Windows instead of just DOS, which is usually what just plain C++ is done in.
Correct me if im wrong, i just always thought of it that way

Share this post


Link to post
Share on other sites
"Visual C++" is the name of Microsoft''s C++ compiler/ide/linker/and so on... It could be called a collection of programs.

"C++" is a programming language. Think of "Visual C++" is just a name.

You can do console programs with Visual C++ not just Windows programs (but that what it''s usually used for).

/. Muzzafarath

Share this post


Link to post
Share on other sites
visual C++ is a ''type'' of c++. like Turbo C++, or Borland Builder. its just a program. C++ is a *Language*, like BASIC. i guess you could compare the situation to BASIC (the language), and a BASIC compiler, like QB v4.5. hope that makes sense.

Share this post


Link to post
Share on other sites
C++ is a language, there is a standard version called ANSI (American National Standards Institute) C++, which is the standard that most compilers follow.

Visual C++ is the name of Microsoft''s compiler, it uses the ANSI standard as to most other compilers (Turbo C++ from Borland, C++ Builder also Borland, and quite a few others)

The "Visual" in Visual C++ is a catch word used to say that it can handle developement for a GUI environment (using graphics and windows compared to the console style of DOS)

Don''t let this fool you, other compilers handle devlopement for windows, (Like the above Borland compilers) but there is no standard for it.

Warning, this is getting a bit ahead but, for windows there is the Win32 sdk, the names of functions and structures stay pretty much the same from compiler to compiler. But, each compiler may differ because there is no true standard (like there is for the C++ language itself) Microsoft uses MFC as its "visual" element in the language to handle semi-rad developement of windows apps. Borland uses its own set of functions and libraries.

In short Visual C++ is not a seperate language, but rather the implementation of Microsofts version of C++. (But since they support the ANSI standard, if you know ANSI C++ you can use it, and most other compilers, just not the GUI portions, just the console elements)

Hope this clears it up
-Omalacon

Share this post


Link to post
Share on other sites
It should probably also be noted that C++ is much more than C. Here's what C++ has to offer:


- Object Orientated Paradigm
- Classes
- Data and operation encapsulation
- Data and operation hiding & protection (not security)
- Inheritance of base data and operations
- Multiple inheritance
- Polymorphism
- Operator and function/method overloading
- Virtual methods (RTTI)
- Parameterization
- Template functions and classes
- Orthogonal decomposition of object space paradigm
- Run Time Type Identification (although, limited)
- Exception handling
- Name spaces
- More strict type checking (prototyping, casting, etc.)
- Inline functions/methods
- Constant data types
- Referential variables
- Ability to declare variables anywhere in a scope
- Better memory management
- Better commenting


Just a few things that came to mind... I may have missed something. So don't think of it as *just* C with a *few* extra things. Check it out!

- Jesse

P.S. Had to fix the formatting ;-)

Edited by - CodeDemon on 3/31/00 1:32:47 AM

Share this post


Link to post
Share on other sites
The visual C++ will teach you to program windows applications while the C++ book will teach you how to program ANSI C++ which is operating system independant. I would suggest learning the latter before the former as Microsoft tends to confuse things with their use of main, and the message queue functionality. C++ will teach you object oriented methodology. Visual C++ will teach you how to make a windows application assuming you know a little more about C++ and its nuances. C++ covers the C++ language in more depth. Visual C++ covers programming for Windows more in depth while sacrificing some of the more advanced features of C++.

Kressilac

Share this post


Link to post
Share on other sites
The "Learn Visual C++ in 21 days" book will teach you how to use the program Visual C++ (and probably som Windows programming too), while the "Learn C++ in 21 days" book will teach you the programming language C++.

/. Muzzafarath

Share this post


Link to post
Share on other sites
it was probably called ''Visual'' c++ cos it comes with MFC (microsoft foundation classes) AND a resource editor: which makes making windows ui''s as easy as in visual basic (ie you can ''draw'' your dialog box, hence visual!).

...anyway, thats just how i think they came up with the name ''Visual C++'', cos that''s all it is: a name.

btw: i know you dont need to use mfc in order to ''draw'' a resource...before anyone jumps in and corrects me...

Share this post


Link to post
Share on other sites