
ActiveX DLL vs ActiveX EXE
Hi Matthew
Your statements in the first paragraph are correct.
In the second paragraph, you are talking about a library that uses global
variables. If you want to convert it into an activeX exe, make sure that you
set the correct instancing property. You should set it to singleuse if you
want a new process to be created for each host application. In this case,
you need'nt worry about overwriting of data.
Moreover, even if you create a dll instead of an exe, it will be fine since
each host process will have a separate instance of the dll in its own
address space and if one host makes any chages in any global variable, it
will be confined to its own instance of the dll.
Hope this helps
--Ashish
=========================
Quote:
> Hello! I would like to confirm something. An activex dll is the same
thing
> as an activex exe except the dll runs in the host process address space
and
> the activex exe gets its own address space for each host process. The exe
> is slower than the dll. Are these statements correct?
> If so, then I should be able to convert a library I have that uses global
> variables extensively to an activex exe and then I won't have to worry
about
> overwritting data from different host processes. It will just be slower
> than if the code were included directly in the host or accessed from a
dll.
> Right?
> Thanks!
> Matthew Hanna