ActiveX exe vs ActiveX dll 
Author Message
 ActiveX exe vs ActiveX dll

Could someone give me a real world example of when you would want to use an
ActiveX exe and when to use an ActiveX dll?  I don't understand when one
would be better than the other.

Thx, Sprite



Wed, 18 Jun 1902 08:00:00 GMT  
 ActiveX exe vs ActiveX dll
It's quite possible that I am totally clueless, but why the ActiveX
qualifier ? Isn't the answer the same for standard EXEs ? That a DLL is a
library of programs, frequently general reusable routines with some common
bond that would be used by a program (exe) wishing to share part of that
common bond (and not wishing to re-invent that part of the wheel).


Quote:
> Could someone give me a real world example of when you would want to use
an
> ActiveX exe and when to use an ActiveX dll?  I don't understand when one
> would be better than the other.

> Thx, Sprite



Tue, 01 Apr 2003 08:52:42 GMT  
 ActiveX exe vs ActiveX dll
Hi,

Active X DLLs are in-process servers.  A class in a DLL operates just about the
same way as it would if it were in the application itself - in the same process
and thread.  You would use a DLL instead of incorporating the code directly
into your main application if:

- you want to be able to use exactly the same classes in several different
applications,
and/or
- you want to be able to update the code used in these classes without having
to recompile the application (s).

An ActiveX EXE is an out-of-process server.  It can also be used for the same
reasons as noted above for ActiveX DLLs, but because it runs as a separate
process it is much less efficient to do so.  You would thus only use an ActiveX
EXE rather tha an ActiveX DLL if and when you actually need the code to run in
a separate process and thread.  A good example would be background processing.

Regards,

John..................

Quote:

> Could someone give me a real world example of when you would want to use an
> ActiveX exe and when to use an ActiveX dll?  I don't understand when one
> would be better than the other.

> Thx, Sprite



Tue, 01 Apr 2003 09:52:56 GMT  
 ActiveX exe vs ActiveX dll
Use an ActiveX EXE when :

1) You want multiple EXEs to talk to one process
    eg: you have a Server

2) You want to call a program by name
     Set oMyObj = CreateObject( ExeName$, ClassName$ )
     oMyObj.DoSomething

    in this case you can have ExeName$ and ClassName$
    as text in an Ini file

3) You want to kick off a different thread
    ie: have two processes really running simultaneously

4) You want to kick off something that can 'die' without
    having any impact on the calling App
    ie: to circumvent VB's dodgy unloading

Take a Web Server - a standard webserver can kick off a tiny App using
CGI-WIN, that can pass the parameters to an ActiveX EXE that is
already running and fully primed - it then queues the job - runs it
and notifies the caller when it is completed.

Another example is a 'communicator' for posting messages between Apps

Quote:

>Could someone give me a real world example of when you would want to use an
>ActiveX exe and when to use an ActiveX dll?  I don't understand when one
>would be better than the other.

>Thx, Sprite



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. ActiveX EXE vs ActiveX DLL

2. ActiveX DLL vs ActiveX EXE

3. ActiveX Doc DLL vs ActiveX Doc EXE

4. ActiveX.exe or ActiveX DLL or ActiveX Control?????????????

5. ActiveX DLL, ActiveX EXE & ActiveX OCX version

6. ActiveX DLL, ActiveX EXE & ActiveX OCX version

7. ActiveX Exe vs. Active Dll

8. data source class in ActiveX DLL vs EXE -- URGENT

9. GetObject() vs ActiveX DLL/EXE

10. ActiveX EXE vs DLL ???

11. Scrollbars in ActiveX DLL vs Standard Exe

12. Scrollbars in ActiveX DLL vs. Standard Exe

 

 
Powered by phpBB® Forum Software