Component sharing between 2 applications

  • Thread starter Thread starter cybertof
  • Start date Start date
C

cybertof

Hi !

I'm using a 3rd party component (xxxx.dll) from 2 of my apps.
(I added the reference manually to the .dll within the 2 app)

Question :
I want to distribute my 2 apps, and these 2 app will not be in the same
directory.

Where should the xxxx.dll be placed to be shared ?
(i don't want to copy the xxxx.dll in each of the apps directory).
 
you can put the *.dll into any directory, and specify reference to it from
any project.
if you dont want your projects to copy dll into their "debug/release"
folders,
set the "Copy Local" property of referenced resource to false...
 
What do you mean with 'reference to it from any project' ?

I was not speaking about the project files, but the .exe.

When i put the app.exe to a new pc, where should i put all the shared
..dll ? Not in each app directory I hope ?
 
hi.
if the dll is managed, you can register it in the GAC.
if the dll is not managed code (com), the you can register it using
regsvr32.exe.
 
Hi Sharon,

When registering with the GAC, where should the physical file xxxx.dll
be stored ?
 
it does not matter.
when registering a dll in the gac, the dll is copied to a special folder.
i don't remember exactly where, but it's controlled by the gac.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top