Chapter 12. Interacting with Unmanaged Code

This final section of the book addresses interoperability between .NET code and the wider world of Microsoft Windows applications. As you can imagine, .NET code can’t live in a vacuum and will have to call (and be called from) code outside the .NET world. Microsoft has put a considerable amount of work into ensuring .NET applications can work simply and effectively with existing Windows code.

This chapter describes the functionality .NET provides for interoperating between managed code (which is executed by the common language runtime) and unmanaged (or native) code. In addition to exploring the differences between managed and unmanaged code, this chapter will introduce the Platform Invoke mechanism by ...

Get COM Programming with Microsoft® .NET now with O’Reilly online learning.

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