Using SAME dll instance in two process

  • Thread starter Thread starter batista
  • Start date Start date
B

batista

Hello all,

I have a DLL, created using VC7 and that DLL is to be used by two
EXEs....

I need to know, whether it is possible load the DLL only once,
so that the same instance is used by both the EXEs.

If its possible then how it is done?????

Please any suggestions..

Thanx.
Cheers..
 
Hello, batista!

No, it is not possible, since every process has its own address space.
Dll are loaded in that address space.

So, if exe1 loads a.dll and exe2 loads a.dll, that exe1 and exe2 will have to
copies of a.dll in memory.

b> I have a DLL, created using VC7 and that DLL is to be used by two
b> EXEs....

b> I need to know, whether it is possible load the DLL only once,
b> so that the same instance is used by both the EXEs.

b> If its possible then how it is done?????

b> Please any suggestions..

b> Thanx.
b> Cheers..


--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
Back
Top