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.

1.
Create a new MFC Dialog–based application called MFCAndDot Net, keeping all the default AppWizard ...

Get Extending MFC Applications with the .NET Framework now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.