24 Compiling Code for the Runtime
There are two main scenarios for using Managed Extensions. A project is developed with Managed Extensions for C++ that interoperates with unmanaged code, or other managed projects. The other main use is to port existing unmanaged C++ projects to the .NET Framework.
The following sections discuss compilation for these scenarios. The following constraint applies to all Managed Extensions projects.
- A Managed Extensions project shall not have a
DllMainfunction that contains parameters of managed type.