Archived

This topic is now archived and is closed to further replies.

steg

calling method within activex control ? ? ?

Recommended Posts

steg    390
Hi all, Can anyone answer this question, I have an activex control sitting in a browser, is it possible to invoke it''s methods from outside of the browser ? Many thanks, Steve

Share this post


Link to post
Share on other sites
S1CA    1418
OLE - Object Linking and Embedding - the previous name for the group of technologies ActiveX is from.

The browser will have a COM/OLE interface, get that interface, that should let you get to the objects embedded in the browser window.

Alternatively just use the MFC AppWizard to make an app (or an interface DLL) which has an ActiveX Container, then load the control into the container.

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
steg    390
Thanks Simon,

Getting the COM interface from the browser sounds the way to go. What I have is a communications DLL I have written which at the moment communicates to the ActiveX control in the browser via SendMessage (I just get the thread process ID). This is clunky, thus I want to be able to call methods within the ax control from the communications DLL.
Others ways I''ve looked at communicating between the two processes is to have a third application sitting in the middle which communicates to the two other processes via a socket.

Kind regards,
Steve

Share this post


Link to post
Share on other sites