ActiveX DLL vs ActiveX EXE 
Author Message
 ActiveX DLL vs ActiveX EXE

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



Tue, 15 Nov 2005 04:30:04 GMT  
 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



Tue, 15 Nov 2005 18:19:55 GMT  
 ActiveX DLL vs ActiveX EXE
So you can make an activex dll single use and it will still for for several
host applications at once?  Nice!  Maybe I don't need the ActiveX Exe
afterall.  Sweet!

Thanks!
Matthew Hanna


Quote:
> 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
> =========================


> > 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



Wed, 16 Nov 2005 02:07:05 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ActiveX exe vs ActiveX dll

2. ActiveX Doc DLL vs ActiveX Doc EXE

3. ActiveX EXE vs ActiveX DLL

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