T
TomC
I'm coming from a Java background, and exploring C#. An acquaintance
gave me a .dll that I plan on using in a couple of projects. His
directions involved putting a copy of the .dll in the folder where my
project is and adding a reference to it. I've gotten everything to
work just fine, but I've got a few general questions regarding the use
of .dll's in this fashion. Unfortunately, my acquaintance has gone on
vacation, so I hope that I might be able to get my questions answered
here.
Just to be clear, the questions are NOT about any specific .dll, but
rather using .dll's in any .NET program.
Question 1: If I create a program using a .dll and want to use it on
a different machine, I assume that I need to send a copy of the .dll
as well. Am I correct?
Question 2: If the answer to #1 is yes, does the .dll need to be in
the same place relative to the .exe file that was when I created it?
If so, then should I be putting it in the Release sub-folder and
referencing it there?
Question 3: I'm accustomed to .dll's being stored in the Windows
folder. Could I put a copy of a.dll that I'm using there instead of
in each project folder, and reference to it there? If so, should I?
Question 4: Some of the things that I may be doing will be done in a
networked environment. The source code will be on the network. How
might that affect the answers to any of my other questions?
Thanks in advance!
gave me a .dll that I plan on using in a couple of projects. His
directions involved putting a copy of the .dll in the folder where my
project is and adding a reference to it. I've gotten everything to
work just fine, but I've got a few general questions regarding the use
of .dll's in this fashion. Unfortunately, my acquaintance has gone on
vacation, so I hope that I might be able to get my questions answered
here.
Just to be clear, the questions are NOT about any specific .dll, but
rather using .dll's in any .NET program.
Question 1: If I create a program using a .dll and want to use it on
a different machine, I assume that I need to send a copy of the .dll
as well. Am I correct?
Question 2: If the answer to #1 is yes, does the .dll need to be in
the same place relative to the .exe file that was when I created it?
If so, then should I be putting it in the Release sub-folder and
referencing it there?
Question 3: I'm accustomed to .dll's being stored in the Windows
folder. Could I put a copy of a.dll that I'm using there instead of
in each project folder, and reference to it there? If so, should I?
Question 4: Some of the things that I may be doing will be done in a
networked environment. The source code will be on the network. How
might that affect the answers to any of my other questions?
Thanks in advance!