Chapter 27: Living with COM

Download CD Content


In this chapter, you will learn how to:

  • How Microsoft .NET lets you use COM objects from .NET projects

  • How to use COM objects through early and late binding

  • How to use ActiveX controls in Windows Forms projects

  • How to expose .NET objects as COM objects

Although the types provided in the Microsoft .NET Framework are sufficient for the vast majority of programs, sometimes you’ll need to interact with existing components, particularly COM components and ActiveX controls. This chapter shows you how the worlds of .NET and COM can interoperate so you can make the best use of new and existing technologies.


This chapter assumes that you know what COM objects are and something about how to use them outside the .NET world. If terms such as GUID, HRESULT, IUnknown, IDispatch, and type library don’t mean anything to you, you should learn more about COM before proceeding with this chapter.

Microsoft Visual C++  .NET(c) Step by Step
Microsoft Visual C++ .NET(c) Step by Step
ISBN: 735615675
Year: 2003
Pages: 208 © 2008-2017.
If you may any questions please contact us: