Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C++ OR Visual C++

Status
Not open for further replies.

jonnie75

Technical User
Nov 9, 2001
6
0
0
US
What are some of the major diffrences between C++ and Visual C++. Will the programs always run under Console Window when executed under Windows OS? How can graphics be created using these languages? Thanks for any answers to these questions for a rookie starting out with C. Your help is appreciated!!!
 
VC++ implements the C++ language, in principle you can compile any C++ program with the VC++ compiler and linker. If the program only uses ANSI standard library functions the programs should also run under Windows. VC++ includes a complete development environment for program development and debugging, and various additional libraries such as the MFC class library and ATL. It also supports use of native windows system functions. Use of such functions however means that the program will not be portable to other platforms.

You can write console programs or Windows graphical programs. For Windows GUI etc. you can use MFC, or use basic Windows message processing. For real graphical applications, games etc. there is the Windows GDI and other possibilities such as DirectX or OpenGL. :) Hope that this helped! ;-)
 
Let's make something clear. "C++" is the name of a language. "VC++" is the name of a product from MS, just like the name "Borland C++", which is the name of a product from Borland.

Whether a C++ program run on another platform depends on whether the program uses or calls any system specific functions. Not all functions are portable or available in another system. Most standard functions are portable, or has equivalent functions. Some functions that are available in DOS compiler are just not supported in Windows due to the protected nature.

Graphics are not part of the language. Look at the list of C++ keywords:

Individual compiler vender also added their own extensions - keywords that are specific to the compiler - for additional special support to the underlying operating system. Here're the keywords supported by VC++:

Non of these keywords address graphics. Just like non of these keywords address I/O. The C/C++ language does not use keywords for any of the system specific functions. Instead all system specific functions are accessible via the compiler supplied libraris or via the OS.

Because graphics functions are highly system specific, there is no standard function names like printf() or fopen() for graphics functions. You always have to clearly specify
1. The target OS,
2. The compiler used
for a more useful answer.

HTH
Shyan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top