
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