Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OCX or COM DLL
Message
From
14/04/2000 15:01:06
 
 
To
14/04/2000 08:38:17
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00359330
Message ID:
00359870
Views:
13
>>>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 >
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform