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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.