Click to See Complete Forum and Search --> : A few questions about activeX
BrandonTurner
Apr 25th, 2003, 07:00 PM
I have a few questions which i cant seemt o get answered.
1. Why use activeX when you can just put vbscript directly in your html code?
2. What is an activeX dll file for?
3. What is an activeX exe for?
4. What is a activeX control for?
5. If i make one how do i get it to be run on a webpage?
6. How do i assign my control?
deja
Apr 27th, 2003, 01:17 AM
i will try to answer concisely
1. ActiveX is a component containing compiled code (native/machine code), in contrast to interpreter vb script. it is much more faster. another issue is that u can use that ActiveX from any client that understand COM, if u code in vb script only who can interpreter vb script can use it.
2. an ActiveX DLL is an in process COM server. i.e. it contains one or more COM clasess that can be created to real objects, but can run only in the caller process.
3. an ActiveX EXE is an out of process COM server. the same as the former, but the objects created from that server are running in the server process. it also can act as a stand alone application. it can give u more isolation but it is much less fast the in-proc COM object.
4. ActiveX control is an in process COM that usually contain also a User Interface, but it doesn't have to support UI. a sample of that kind is DataGrid control or Timer.
5. ActiveX EXE and DLL can be created from a web page only in the server side. ActiveX Control can be using in the client side, but it required the client to authorizing it. in that case the ActiveX Control will be downloading to the client machine and run on the client. an example of using in proc COM object from ASP page (server side):
<%
dim obj
set obj = server.createobject("MyDLL.MyClass")
obj.DoSomething
set obj = nothing
%>
6. i didn't realize that question
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.