Board index » delphi » VBA + Events Generated from Delphi based OLE Automation Object
Christopher Fairbairn
![]() Delphi Developer |
Thu, 18 Jul 2002 03:00:00 GMT
VBA + Events Generated from Delphi based OLE Automation Object
Hi,
I am new to OLE Automation etc but I have managed getting code working for I have placed a Microsoft Script Control object onto my form and can execute I have tried such online documents as Microsoft's MSDN and Binh Ly's COM From the documentation for both technologies involved it should be simple Here is how I see I am supposed to implement an event for an automation On the VBA side it should be as simple as private sub application_onmyevent() then again it could be set application.onmyevent = GetRef(Name_Of_Subroutine_To_Handle_Event) Both are shown in various places in the VBA documentation. The code should On the Delphi side I'm lost. I've created an OLE Automation server via This creates two interfaces one for methods etc and one for events. To add Now I assume that to fire the event I call FEvents.OnMyEvent? FEvents is Is FEvents pointing to NIL because my VBA script isn't "sinking the event" Can someone please show me how to implement an automation object event in Once I get the actual automation server part done I can go about figuring Thanks, |