Click to See Complete Forum and Search --> : ActiveX Controls in IE


May 11th, 1999, 09:41 PM
This is not exactly a C++ question but here goes. Until now I have been creating COM servers which I can access in ASP using syntax such as: set x = CreateObject("myobject.server").

Now I wish to place an ActiveX control into the web page. I use the <OBJECT> tag and the control shows up. I use the MS ActiveX control pad to create the <object> tag.

The problem is: How do I get access to the object in my ASP code. CreateObject will create a new instance of the object. How do I create a variable that will point to the object defined in the <object> tag so that I may use its properties and methods.

Where can I read about this?

Thank you very much.

muscicapa
May 11th, 1999, 10:54 PM
You dont seem to be making the difference between server side script and client side script, you can use a server side object that you script , you may need to use RUNAT server. If you need to do something dynamic on the client side you need to think of some interesting logic to generate the client-side-script using server-side-script(or at least portions of it. The only other way of making client side object and server connect is perhaps to use DCOM ... but I am not sure how it is tunneled over HTTP..security issues etc.