

This features gives maximum speed in the compilation time. A _gc class shall not inherit from more than one managed class.Īny file containing metadata like *.dll, *.obj and *.exe can be referenced by C++ source files. The _gc interface supports the COM style interface programming in C++. The _gc class is the most general class in managed C++. It is possible to call native Win32 functions from the. This mechanism is a very useful new feature in managed C++. Garbage collection is a mechanism that allows the system to detect when an object can no longer be accessed.

The _gc memory instance of the class is managed by the garbage collector. We mention the C++ class as a _gc at the beginning. But, C++ is not managed even with /CLR switch compilation. The managed code is the code targeted at the Common Language Runtime (CLR). NET has improved debugging capability like managed debugging, unmanaged debugging, multilanguage debugging and remote debugging. NET IDE (Integrated Development Environment). All the features are available through the Visual studio. NET framework classes, and unmanaged C++ features like ActiveX® Controls. The user gets unique features, managed code garbage collection, threading, and access to all. The managed C++ is the simplest form of C++. The C++ programmer can mix managed and unmanaged codes. Microsoft has provided two types of C++ Libraries. NET CLR (Common Language Runtime) support with /CLR switch at compile time, with MSIL (Microsoft Intermediate Language) features. It will support both 32-bit programming and 64-bit programming. NET includes MFC (Microsoft Foundation Classes), ATL (Active Template Library) and STL (Static Template Library). It is useful to create dynamic web applications as well as XML based web services. NET is a powerful tool to build Windows applications for C or C++ programmers.
