Summary

Team-Fly    

 
.NET and COM Interoperability Handbook, The
By Alan Gordon
Table of Contents
Chapter Eight.  Advanced COM to .NET Interop

Summary

In this chapter, you learned some of the advanced aspects of using a managed object from an unmanaged client. You learned alternate ways of instantiating a managed object besides the standard COM CoCreateInstance function. Using these techniques, you can instantiate a managed object without having to register the object first or instantiate a managed object that has a parameterized constructor. You also learned how garbage collection complicates object life-cycle management and how to solve some of these problems. You also learned how to call overloaded methods and how to control the class interface that the CCW will expose. I also covered using COM apartments, rich-error information, and Windows Forms controls as ActiveX controls. In addition, I explained how to catch managed events in an unmanaged client. You are now ready to tackle most "real-word" problems associated with using a managed object from an unmanaged client.


Team-Fly    
Top
 


. Net and COM Interoperability Handbook
The .NET and COM Interoperability Handbook (Integrated .Net)
ISBN: 013046130X
EAN: 2147483647
Year: 2002
Pages: 119
Authors: Alan Gordon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net