Events responding to COM in VBS and page

xiaoxiao2021-03-06  40

COM's Connection Point can become a callback mechanism for events.

The method of receiving time callback in VBS is

Function MyObject_onadd (V1, V2)

MSGBOX "Add" & V1 & V2END FUNCTION

Set cnxn4 = wscript.createObject ("atlcom.atl3", "myObject_")

Method used in page