>>>>Is it possible to instantiate a COM DLL in a web page, or is this only possible for ocx type ActiveX components?
>>>
>>>You can do instance a COM DLL through scripting; unlike an ActiveX, it can't participate in the events loop directly.
>>
>>Hmmm... I must be doing something wrong then. I assumed you would instantiate it in VBScript in the web page using Createobject() with the ProgId, e.g.
>>
>>Set MyComDll = Createobject( "MyComDll.MyComObject" )
>>
>>It barks pretty loud and errors out when I try this. Am I mistaken on this? I was going to try instantiating with the < Object > element like an ocx but haven't gotten to it yet.
>
>There is considerably more trouble involved in instanciating an ActiveX control on the client side. You have to use the Object tag, specify a CLSID, and a codebase from which the object can be downloaded if it is not installed. The following code instanciates the MSChart control in a web page. I am taking Ed's word for it that this is possible with non-ActiveX COM controls in web pages... I have never tried it.
>
>
>< OBJECT
> ID="ocxGraph"
> CLASSID="clsid:FC25B780-75BE-11CF-8B01-444553540000"
> CODEBASE="http://activex.microsoft.com/controls/iexplorer/iechart.ocx#Version=4,70,0,1161"
> TYPE="application/x-oleobject"
>< /OBJECT >
>
Hi Eric,
Thanks for the response.
This is what I am going to try as a test. Pretty new for me with COM objects in web pages, lot of trial and error right now. I wasn't sure from Rick's post if using this ( the object ) syntax would cause security violations or the CreateObject() syntax would. I did try a test using CreateObject( "Scripting.Dictionary" ) and this worked w/o error.
I'll have to experiment with it but won't get around to it until late this week. I had a death in my family yesterday so I will be doing mostly nothing technical for several days.
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.