Summary

team lib

In this chapter, youve seen how .NET components can be used by .NET clients . Exposing .NET types to COM is more restrictive and more workthan importing COM types mainly because .NET types have a much richer structure and integrate in more complex ways than COM types.

COM Callable Wrappers can be produced for .NET types, and these wrappers provide all the behavior COM client code will be expecting. Methods on .NET types are exposed via COM interfaces. .NET interfaces will be converted and exposed as COM interfaces, and if a class doesnt expose its methods using interfaces, a class interface will be constructed through which class methods will be exposed. .NET events can also be handled by COM clients that expect a connection-point style of interaction, provided that the .NET component correctly exposes source interfaces. The final part of the chapter showed that you can use .NET Windows Forms controls as ActiveX controls, but that this is guaranteed to work correctly only in Internet Explorer.

 
team lib


COM Programming with Microsoft .NET
COM Programming with Microsoft .NET
ISBN: 0735618755
EAN: 2147483647
Year: 2006
Pages: 140

Similar book on Amazon

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