O'Reilly logo

Extending MFC Applications with the .NET Framework by Nishant Sivakumar, Tom Archer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required