473,399 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

How do I add libraries to my vb.net project?

I have several questions about vb.net projects:

1. When I compile my project, it produces a 'bin' folder and an 'obj'
folder and within the 'obj' folder are 2 other folders - 'debug' and
'release'. If I want my code to access a dll that a third party
produced, where do I put that dll. In 'bin'?, In 'debug'? In 'obj'?

2. I find that when I compile my project into an exe, that I have
several copies of that exe in different places. One was in 'bin', one
was in 'debug' and one was in 'release'. Why would I have three of
them?

3. If I want my code to access a third party dll, does that mean I
should have a 'add references' to that dll? Or is just adding the dll
to the 'bin' directory sufficient?

4. I made a 'solution' which had 2 projects in it - one was source for
a dll of my own, and one was source for a exe that calls the dll. I
thought that I needed 'add references' to make the caller know about
the dll. But 'add references' brings up a screen with several tabs.
The dll project was listed in one of the tabs, but that was not
enough. The caller program did not recognize code statements that
referred to the class in the dll. So I used another tab (of add-
references) where I browsed for the 'bin' directory of the dll
project, and once I did that, the caller exe worked with it. But is
that really what I should be doing?

5. Is there a book out there that addresses issues like these?

Thanks,
HA

Jul 3 '07 #1
1 11332
Hi -

1. When I compile my project, it produces a 'bin' folder and an 'obj'
folder and within the 'obj' folder are 2 other folders - 'debug' and
'release'. If I want my code to access a dll that a third party
produced, where do I put that dll. In 'bin'?, In 'debug'? In 'obj'?
Neither. Add a reference to the DLL by browsing to it. VS2005 will do
the rest.
2. I find that when I compile my project into an exe, that I have
several copies of that exe in different places. One was in 'bin', one
was in 'debug' and one was in 'release'. Why would I have three of
them?
The debug and release folders are named based on the configuration
name. Without getting too complicated, depending on which
configuration your using when you compile the application, the
resultant exe file resides in the respective folder. (Note: you can
create additional configurations, in which case, the respective folder
would be created, but that's outside the scope of this post.)
3. If I want my code to access a third party dll, does that mean I
should have a 'add references' to that dll? Or is just adding the dll
to the 'bin' directory sufficient?
See 1.
4. I made a 'solution' which had 2 projects in it - one was source for
a dll of my own, and one was source for a exe that calls the dll. I
thought that I needed 'add references' to make the caller know about
the dll. But 'add references' brings up a screen with several tabs.
The dll project was listed in one of the tabs, but that was not
enough. The caller program did not recognize code statements that
referred to the class in the dll. So I used another tab (of add-
references) where I browsed for the 'bin' directory of the dll
project, and once I did that, the caller exe worked with it. But is
that really what I should be doing?
On the application project, you would add a project reference (Add a
Reference, you'll see the class library project in the project tab).
Every time you compile the app, it will compile the dll library, then
your application. (Note: this is also configurable)
5. Is there a book out there that addresses issues like these?
There are a TON of books, and since I'm not being paid to endorse any
of them, I'd recommend that you start with MSDN, since it is a free
resource. Straight from the horses mouth, as it were.

Cheers,

-Mark

Jul 3 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: fabio de francesco | last post by:
Hello, I have a couple of years of experience with C++. I started studying C++ syntax, then I read the B.Stroustrup's book, and eventually I went through the N.Josuttis' book on how to program...
1
by: rajesh_krec | last post by:
Hello Everybody, I'm using Microsoft Visual Studio .NET 2003 (with Vc7 compiler) I have some 15 projects each of which generate a static library when i build the solution in release mode. ...
3
by: joseluismarchetti | last post by:
Hello everybody, Although I am sure this is an important question for this group, I am not sure this question belongs to this group and I will be happy to move it to the correct one after you...
1
by: Jim Heavey | last post by:
I have a web application which accesses Class Libraries in another project. Can I add an "App.config" file to my Class Libraries project and be able to use that configuration information from my...
8
by: Aaron | last post by:
I'm coming from C++ programming 5 years ago into VB.NET, so please be patient with me. In C++, I was able to create a "library" of functions and procedures that I would commonly use in various...
335
by: extrudedaluminiu | last post by:
Hi, Is there any group in the manner of the C++ Boost group that works on the evolution of the C language? Or is there any group that performs an equivalent function? Thanks, -vs
3
by: Fernando Chilvarguer | last post by:
Hello! I created a Class Library project in VS2005. Then, using VS, I was able to add a connection string to the project settings, which automaticaly created an app.config file for me. If I try...
6
by: Bill Spotz | last post by:
Hi, Is there a way to tell an executing python script where to look for dynamically-loaded libraries? My situation is that that I am developing python wrappers for a large software project. ...
3
by: djbaker | last post by:
Greetings, I am trying to create a class library/dll with C++ and I am running into a lot of trouble. I know that this is a C++ forum and not one specific to windows or VS 2005 but I'm hoping...
2
by: Curious | last post by:
I was asked to create a C#.NET Console Library project that contains two sub-libraries. And each sub-library contains multiple utilties. As an experiment, I've created a Console Library project...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.