Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Visual C++

created by chaosdiscord

(thing) by Toxick (4.1 wk) (print)   ?   (I like it!) 1 C! Fri Oct 05 2001 at 14:57:32

Microsoft Visual C++ is part of the Visual Studio suite of development applications along with Visual Basic, Visual FoxPro, Visual InterDev, and now Visual C# which seems to have replaced Visual J++.

The primary purpose of Visual C++ is to provide the programmer with an integrated development environment (IDE) that has syntax highlighting, a tree listing of classes and their members, compilation, debugging and search results, and a highly intuitive interface.

One of the big selling points of Visual C++ is that you can whip out Windows Applications just as fast as you can in Visual Basic, and it hides all that ugly C++ nonsense from the programmer/user unless they decide to learn more about the guts of their programs. With a few deft mouse maneuvers you can slap a button onto a dialog box, and create an event handling macro which maps a button click event to a function which the programmer can fill in with stuff to do when the end user clicks that button. In fact, in a simple program, you don't have to write any native C++ code at all! Just call on some MFC object methods, and you're good to go.

MSVC & MFC

The automated functionality of Visual C++ makes extensive use of the MFC Library which is an object oriented wrapper around the Windows API. All the menus, dialog boxes, UI controls on those dialog boxes, toolbars, status bars all have class representatives in the MFC Library and it is easy to attach a specific widget to a particular class instance. Then to perform an operation on a visible object, such as a status bar, the programmer simply calls a method of the CStatusBar object, and voila.

Having said that, I would suggest that you have a solid grasp of C++ and the Windows API before attempting to write any programs using the MFC library. It can be completely overwhelming and confusing to a novice programmer, no matter how easy Microsoft made it.

The IDE

Another joyous feature in Visual C++ (and across Visual Studio in general) is the debugger. I don't care what people say, I love the debugger. In the MSVC debugger, you can stop the program running on any executable line of code, step through the code one command at a time, and examine any variable or object that is currently in scope. You can view the call stack and there is a handy disassembler. Really, what else could a boy want?

The best feature of this IDE, in my humble opinion, is the List Members functionality. When the programmer needs to call an object's method, they can type in the object name, and magically a dropdown list appears which contains all the available member functions and properties that make up the object. Little lock and key icons represent private and protected members, so you can't use those (there are exceptions), but you can view them, to get a better grasp of what's going on in the class.

All of that is packaged up together with Microsoft's C++ compiler and linker, so what when you think you're ready to try out your program, you punch F5 and out shoots your program. If there are errors, you'll get a list of errors and warnings which are more often than not helpful. Fix the errors, lather, rinse, repeat as necessary.


printable version
chaos

Microsoft Visual C++ C++ Code Warrior Linux
Visual Basic Programmers Scud: The Disposable Assassin IDE Windows 95
Visual Studio how to load an AVI in Visual C++ MFC C++: no compilers available
Windows Notepad Willy Wonka and the Chocolate Factory MCSD Hell
Microsoft FoxPro DirectX programmer
Visual J++ compiler Products that shoot flames GTK+ Win32
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
Love Canal
Social Harassment in the Work Place
You cannot burn the a eastern
potato
Ripping off soda machines
Stuttering
Bobby Jones
Sidekick
Extraordinary Machine
Imagism
Alan Keyes
giraffe
Working for a Car Dealership compromises my soul every day
New Writeups
The Debutante
Until death do us part(fiction)
Ysardo
a brother to a sister(personal)
antigravpussy
your warm whispers(personal)
Clarke
Multiculturalism(idea)
aneurin
Earl of Landaff(person)
Heitah
Pseudocide(idea)
XWiz
Google Knol(lede)
Mythi
July 24, 2008(personal)
locke baron
The fall of Earth(fiction)
BookReader
Fear the Cold(dream)
Pavlovna
Kathleen MacInnes(person)
stainedglass
1(fiction)
kalen
Three "T"s(idea)
octillion369
Undead(idea)
archiewood
Ico(fiction)
Everything 2 is brought to you by the letter C and The Everything Development Company