المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : COM: Handle Late-bound Events within Visual Basic Using an ATL Bridge



C++ Programming
03-29-2009, 02:42 AM
Since a Visual Basic client doesn't handle events directly from late-bound COM objects, it needs some way to capture all the events and parameters launched by any COM object server instantiated at runtime and not known at design time. This article explains how to build a bridge component that does just that. The bridge component transmits the intercepted event data back to the Visual Basic client using another supporting COM object that is capable of holding event data and attributes. The Visual Basic client receives the notification from the bridge and extracts all the information relative to the event from the supporting object.

Carlo Randone

<a href="http://msdn.microsoft.com/magazine/d1fde243-36d0-4b6a-93e7-86c0a9c07c63">MSDN Magazine March 2001