|
|
To support .NET, Microsoft defines the #using preprocessor directive, which is used to import metadata into your program. Metadata contains type and member information in a form that is independent of a specific computer language. Thus, metadata helps support mixed-language programming. All managed C++ programs must import <mscorlib.dll>, which contains the metadata for the .NET Framework.
Microsoft defines two pragmas that relate to the .NET Framework. (Pragmas are used with the the #pragma preprocessing directive.) The first is managed, which specifies managed code. The second is unmanaged, which specifies unmanaged (that is, native) code. These pragmas can be used within a program to selectively create managed and unmanaged code.
|
|