Visual C++ .NET is smiling to you, please return her smile  

Visual C++ .Net Programming Tutorials: Unmanaged vs Managed Codes

 

 

 

Home

 

 

 

 

C++ is an object-oriented programming language. You define classes to represent the important types of entities in your application, and you create objects as instances of these classes. For example, a Human Resources application might define classes such as Employee and Contract. When the application is running, it might create a new Employee object every time a new employee joins the company and a new Contract object to describe the employee’s terms of employment. In this module, you’ll see how to organize classes into header files and source files, which enables you to keep a clean separation between a class definition and its implementation. You’ll also learn how to provide constructors to initialize new objects when they’re created. Likewise, you’ll provide destructors to tidy up objects just before they are destroyed. Most of the data members and member functions in a class are instance members because they pertain to specific instances of the class. It’s also possible to define class members, which pertain to the class as a whole. You’ll see how to define class members in this module using the static keyword. Finally you’ll see how to create object relationships in C++. This concept is important in object-oriented programming because it allows objects to communicate with each other in a running application. You will be exposed to the class and struct of the unmanaged and managed C++. The old and new C++ .NET keywords used also will be discussed. The following are the topics available in this Chapter.

  1. Class & Unmanaged Code 1: Intro, Organizing Classes into Header Files and Source Files, Managed Classes vs. Unmanaged Classes, Defining a Class in a Header File

  2. Class & Unmanaged Code 2: Implementing a Class in a Source File and Creating and Destroying Objects

  3. Class & Unmanaged Code 3: Defining Constructors and Destructors, Defining Constructors and Member Initialization Lists

  4. Class & Unmanaged Code 4: Defining Class-Wide Members, Defining Class-Wide Data Members, Defining Class-Wide Member Functions, Defining Object Relationships and Defining the LoyaltyScheme Class

  5. Class & Unmanaged Code 5: Implementing the LoyaltyScheme Class, Creating, Using, and Destroying LoyaltyScheme Objects, Testing the Application and Quick Reference

  6. Class & Managed Code 1: Intro, Features of Object-Oriented Programming Languages, Encapsulation, Inheritance, Polymorphism, Classes and Objects, Benefits to the Developmental Life Cycle

  7. Class & Managed Code 2: A Simple Class Program Example

  8. Class & Managed Code 3: Classes and Structs (Managed) Definitions: Example, Quick Reference, Supplementary Notes: Some Confusing Story - Managed Extensions of C++ vs new Visual C++ .Net syntax and The ^ Operator (Handle to Object on Managed Heap): Example

  9. Class & Managed Code 4: The ^ Operator (Handle to Object on Managed Heap): Example, gcnew and Declare Handles in Native Types: Example

  10. Class & Managed Code 5: nullptr Example

  11. Class & Managed Code 6: Declaration of a Managed Class Type: From Managed Extension of C++ to New C++ .Net Syntax, Specifying the Class as Abstract, Specifying the Class as Sealed, CLR Inheritance: Specifying the Base Class, Declaration of a CLR Reference Class Object, Dynamic Allocation of an Object on the CLR Heap and A Tracking Reference to No Object

  12. Class & Managed Code 7: Changes in Destructor Semantics, Non-deterministic Finalization, In Managed Extensions for C++, Destructors go to Finalize(), In New Syntax, Destructors go to Dispose() and Declaring a Reference Object

  13. Class & Managed Code 8: Declaring an Explicit Finalize() (!R), What This Means Going from Managed Extensions for C++ to Visual C++ 2005 and Destructors and Finalizers in Visual C++: Example

 

 

 

 

Best viewed using FireFox 1.5.0 and above. Worst viewed using IE of any version

 

Webmaster contact: [contact[@]visualcplusdotnet.com]

Copyright 2009 © Visualcplusdotnet. All rights reserved.

Excellent hosting services provided by MochaHost - The Online Central

 

 

 

| About | Disclaimer | Privacy | Site Index & Project Download | Native C | Contact |

 
 

 

Custom Search