Writing an MFC Application That Accesses .NET
As mentioned in the Preface, there are two means of interfacing native and managed code: COM Interop and the combination of Managed Extensions and IJW (It Just Works). For reasons spelled out in the Preface, the latter technique will be used throughout this book as you discover the myriad BCL classes that can greatly enhance your productivity as an MFC developer. However, before we get into all those BCL classes, you'll first need to see the steps required for mixing MFC and .NET code. Note that these steps remain constant regardless of the simplicity or complexity of the application being coded.
Create a new MFC Dialog–based application called MFCAndDot Net, keeping all the default AppWizard ...