Tuesday, July 28, 2009

Differances between V-C++ and old-school C++?

i know this may sound stupid, but in old c++ programming everything including button commands and things were written into the cpp files... now everything goes into the headers? i am confused... if anyone has a few moments to chat please let me know... yahoo = dacrypto, AIM = usswilliamgray





thanks for all your help !!!!!








DaCrypto

Differances between V-C++ and old-school C++?
Microsoft Visual C++ (also known as MSVC) is a commercial integrated development environment (IDE) product engineered by Microsoft for the C, C++, and C++/CLI programming languages. It has tools for developing and debugging C++ code, especially code written for the Microsoft Windows API, the DirectX API, and the Microsoft .NET Framework.





Visual C++ was the most popular object-oriented programming language before the advent of Java in the late 1990s.





Regarding you doubts cpp vs headers..


Well,see its important feature of OOPs....


which depreciates the use of .cpp





Hope this will help


Cheers:)
Reply:Everything in VC++ is object oriented, you still can write c-style programs. Everything is still in the headers (.h)and implementations are still the .cpp files, depending on the ide, you'll have a packaged solution(project) to contain all of you source code.





Example: the Button class


In old c and VC6 it'll be in the .h file and implementation in .cpp





in .NET the class will be in one cpp file in your solution package.





you still can do this in C or C++ but define and implement your class in the cpp file and it'll still work.
Reply:In the older models before Windows, you had to code everything yourself for a rich GUI experience- buttons, like you mentioned, and EVERYTHING.





With Windows you just use built in functions. The extensions to those functions are built right into VC++ for your convenience.


No comments:

Post a Comment