.net - ActiveX COM in C#: how to bind C# events method to VBS sub -


let have need create activex com via c#. reason need work sdk, implemented in c# , provided 3d party vendor. have been following great examples here in create activex com c# , load via class id in .aspx. succeed calling new com method when clicks on button web page.

now problem that, of new com methods use async callback functions wait vendor response. example in new com method hello(), there corresponding callback function, onhello(), triggered when com dll receives response vendor.

my question is, how can bind onhello() function call web page vbs sub such newcomid_onhello(), can display on web page notify user. don't want use busy-waiting check infinitely.

this simple in c++ can try map call function vbs via .idl file etc, or begin_connection_point_map, etc. not sure how can in .net/c#. i've tried use comsourceinterfaces, still no way find out how trigger particular vbs sub when 1 of new com method, such onhello() triggered vendor response.

or, doable? know msft abandoning activex edge, cannot move away activex now.

thanks hint/help!!

not dup expose event handler vbscript users of com object in :1) com server in c++, not c#/.net 2) scripting not done in vbs

i tried lots of links , seems following 2 lead me right direction:

https://code.msdn.microsoft.com/windowsdesktop/csactivex-c3f43e7d http://simpcode.blogspot.com/2013/09/c-com-interop-and-events.html

at least can see alert popup window when backend async call returns response


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -