Click here to Skip to main content
15,892,059 members
Home / Discussions / COM
   

COM

 
GeneralRe: Problem with VARIANT!!!!!!!!!!!!!!!!!!!!!!!! Pin
ursus zeta12-Mar-05 9:40
ursus zeta12-Mar-05 9:40 
GeneralRe: Problem with VARIANT!!!!!!!!!!!!!!!!!!!!!!!! Pin
ajalilqarshi13-Mar-05 23:17
ajalilqarshi13-Mar-05 23:17 
GeneralRe: Problem with VARIANT!!!!!!!!!!!!!!!!!!!!!!!! Pin
ajalilqarshi14-Mar-05 0:06
ajalilqarshi14-Mar-05 0:06 
GeneralAudio File identification and conversion of media files to WMA Pin
sumitkedia9-Mar-05 0:35
sumitkedia9-Mar-05 0:35 
GeneralIs it possible to catch a com event in vb or javascript Pin
grinder7-Mar-05 3:51
grinder7-Mar-05 3:51 
GeneralRe: Is it possible to catch a com event in vb or javascript Pin
rwestgraham8-Mar-05 17:41
rwestgraham8-Mar-05 17:41 
GeneralRe: Is it possible to catch a com event in vb or javascript Pin
grinder8-Mar-05 21:18
grinder8-Mar-05 21:18 
GeneralRe: Is it possible to catch a com event in vb or javascript Pin
rwestgraham9-Mar-05 23:20
rwestgraham9-Mar-05 23:20 
The syntax you are using is for HTML page events, not sinking COM events.

You have to create the COM object instance from the web page in order for the web page to receive it's events. Then you can write event handlers.

For example,

If the COM object is already registered locally then you can use code like this (substitute the CLSID for your actual class):

-------------------------------------------------------------------------------------------

<head>

<OBJECT ID=MyCOMObject CLASSID="CLSID:BC89547C-9CC5-445D-A960-567B9B9AB93A"></OBJECT>

<SCRIPT LANGUAGE = "VBScript">

Sub MyCOMObject_Notify()
'Add code here to process your notification event
Msgbox "Trapped Notification"
End Sub

</SCRIPT>

</head>

-------------------------------------------------------------------------------------------

The COM object in this case is always loaded by the OBJECT tag when the web page loads, and unloaded when the web page unloads.

This may not be what you want. If the COM object already exists, what you have to do is write a second object that the web page can load. This second object must contain code that gets a reference to the running COM object, as well as code that allows it to act as a proxy in the web page for relaying the events from the original COM object.

Robert

GeneralRe: Is it possible to catch a com event in vb or javascript Pin
grinder13-Mar-05 19:33
grinder13-Mar-05 19:33 
GeneralDCOM event sink on Terminal Services Pin
FearlessBurner7-Mar-05 2:06
FearlessBurner7-Mar-05 2:06 
GeneralWMI -&gt; Win32_OperatingSystem Pin
Stefak6-Mar-05 13:21
Stefak6-Mar-05 13:21 
GeneralTransparent ActiveX Control Pin
gameengineer5-Mar-05 4:22
gameengineer5-Mar-05 4:22 
GeneralRe: Transparent ActiveX Control Pin
Pinhead_Me10-Mar-05 7:58
Pinhead_Me10-Mar-05 7:58 
GeneralRe: Transparent ActiveX Control Pin
smjones10-Mar-05 13:49
smjones10-Mar-05 13:49 
GeneralRe: Transparent ActiveX Control Pin
smjones14-Apr-05 11:57
smjones14-Apr-05 11:57 
GeneralRe: Transparent ActiveX Control Pin
Pinhead_Me18-Apr-05 5:44
Pinhead_Me18-Apr-05 5:44 
GeneralCom-Addin Query Pin
Anonymous5-Mar-05 2:14
Anonymous5-Mar-05 2:14 
GeneralWindows Hooking. Pin
technojewel3-Mar-05 20:18
technojewel3-Mar-05 20:18 
GeneralRe: Windows Hooking. Pin
Tarundeep Singh Kalra4-Mar-05 8:15
Tarundeep Singh Kalra4-Mar-05 8:15 
GeneralRe: Windows Hooking. Pin
vishalmore15-Mar-05 19:08
vishalmore15-Mar-05 19:08 
GeneralClient/Server COM+ Application Pin
Wender Oliveira3-Mar-05 14:58
Wender Oliveira3-Mar-05 14:58 
GeneralProblem While Instantiating and calling API through COM Component Pin
Anuj Mishra2-Mar-05 18:04
Anuj Mishra2-Mar-05 18:04 
GeneralIE code download failure for dll and ActiveX control using INF and CAB file Pin
prog012-Mar-05 11:40
prog012-Mar-05 11:40 
GeneralBindIFilterFromStream Pin
cheesepirate2-Mar-05 7:02
cheesepirate2-Mar-05 7:02 
Generaldyanamically create listboxes in ATL Pin
gauravjain1-Mar-05 4:28
gauravjain1-Mar-05 4:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.