This chapter described the features that Microsoft has implemented in .NET to allow you to use COM components in .NET applications.
You have seen how interop assemblies can be generated by adding a reference in a Visual Studio .NET project, by using the TlbImp.exe utility, or by using the TypeLibConverter class from code. The chapter covered the details of how COM types are converted, and introduced some of the issues involved in importing type libraries. You have also seen how ActiveX controls can be used in Windows Forms projects, just as if they were Windows Forms controls. At this point, you should be able to take an existing COM component, and use it in a .NET application.
The next chapter will show you how to do the opposite to use a .NET component from a COM client. Although this scenario will not be as common as the one we have covered in this chapter, it provides a way to extend COM- based applications using the features available in Visual Studio .NET and the .NET Framework.