Results 1 to 2 of 2

Thread: A few questions about activeX

  1. #1

    Thread Starter
    Hyperactive Member BrandonTurner's Avatar
    Join Date
    Sep 2001
    Location
    East Lansing, Michiagn
    Posts
    268

    A few questions about activeX

    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?

  2. #2
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width