473,491 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do I put a exe-project and a dll-project in the same solution?

I would like to put a dll and a project in the same solution. So I
created a project (of type exe) and then I chose 'new project' (of
type class library) and picked the option 'same solution'. So it
looks like I created 2 projects in the same solution, which is what I
wanted to do.
However, I want the exe-project to call the dll-project. The dll
project has a class called "ClassSayThings", and a method called
"sayHello".
When I look in Solution Explorer, I see the following:

CallerOfDll
My Project
Form1.vb
TheCalledDLL
My Project
ClassSayThings.vb

(I wanted to change the name of the 'My Project' entries but I can't
find a way to do that.)

Now in the exe-project, I want to add a reference to the dll. I click
on 'Project-Add references' But I don't see the reference to
"TheCalledDLL" in the reference list of dotnet libraries, though I do
see a reference to the assembly 'TheCalledDll" in the "Projects" tab
of the 'add references' box.
Likewise, when I try to add a line of code to the caller as follows:
Dim NewClassInstance as TheCalledDll.ClassSayThings
I fail - there is no such type as "TheCalledDll.ClassSayThings'.
Is there something I am missing?
Thanks,
HA

Jun 28 '07 #1
2 2412
On Jun 28, 10:07 am, HONOREDANCES...@YAHOO.COM wrote:
I would like to put a dll and a project in the same solution. So I
created a project (of type exe) and then I chose 'new project' (of
type class library) and picked the option 'same solution'. So it
looks like I created 2 projects in the same solution, which is what I
wanted to do.
However, I want the exe-project to call the dll-project. The dll
project has a class called "ClassSayThings", and a method called
"sayHello".
When I look in Solution Explorer, I see the following:

CallerOfDll
My Project
Form1.vb
TheCalledDLL
My Project
ClassSayThings.vb

(I wanted to change the name of the 'My Project' entries but I can't
find a way to do that.)

Now in the exe-project, I want to add a reference to the dll. I click
on 'Project-Add references' But I don't see the reference to
"TheCalledDLL" in the reference list of dotnet libraries, though I do
see a reference to the assembly 'TheCalledDll" in the "Projects" tab
of the 'add references' box.
Likewise, when I try to add a line of code to the caller as follows:
Dim NewClassInstance as TheCalledDll.ClassSayThings
I fail - there is no such type as "TheCalledDll.ClassSayThings'.
Is there something I am missing?
Thanks,
HA

though I do
see a reference to the assembly 'TheCalledDll" in the "Projects" tab
of the 'add references' box.
Did you add a reference to this project? If so you should be set -
please note you'll still have to fully qualify all references to the
dll project, so I would recommend that you add an imports statement
for "TheCalledDll"

Thanks,

Seth Rowe

Jun 28 '07 #2
On Jun 28, 3:07 pm, HONOREDANCES...@YAHOO.COM wrote:
I would like to put a dll and a project in the same solution. So I
created a project (of type exe) and then I chose 'new project' (of
type class library) and picked the option 'same solution'. So it
looks like I created 2 projects in the same solution, which is what I
wanted to do.
However, I want the exe-project to call the dll-project. The dll
project has a class called "ClassSayThings", and a method called
"sayHello".
When I look in Solution Explorer, I see the following:

CallerOfDll
My Project
Form1.vb
TheCalledDLL
My Project
ClassSayThings.vb

(I wanted to change the name of the 'My Project' entries but I can't
find a way to do that.)

Now in the exe-project, I want to add a reference to the dll. I click
on 'Project-Add references' But I don't see the reference to
"TheCalledDLL" in the reference list of dotnet libraries, though I do
see a reference to the assembly 'TheCalledDll" in the "Projects" tab
of the 'add references' box.
Likewise, when I try to add a line of code to the caller as follows:
Dim NewClassInstance as TheCalledDll.ClassSayThings
I fail - there is no such type as "TheCalledDll.ClassSayThings'.
Is there something I am missing?
Thanks,
HA
Both your EXE project and your DLL are in your solution, what you need
to do is, select the EXE project and choose the project menu Add
refererences and then choose the "PROJECTS" tab. It should be listed
there.

If sucessfully added it should appear under the exe projects
References folder on the solution explorer.

It's also worth checking your namespace / classes and solution are
marked public is applicable.

And finally check that you have a line at the top of the place you
want to use it that says

Imports TheCalledDLL

good Luck

Phill

Jun 28 '07 #3

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

Similar topics

8
6656
by: Mike Smith | last post by:
If I put an old exe file on a web site and create a link to it then IE will ask "open or save to disk?" when clicked. When I create an exe with VS.NET it does not ask anything, it just tries to...
8
8313
by: Vinod | last post by:
Hi, I have a problem, i am calling an exe from asp program. Its not working fine. When i execute the exe through the dos program directly i get the desired result. My exe will convert files in...
9
8126
by: Josh Mayfield | last post by:
Note: There is considerable background detail here, but I do have three questions, which are clearly marked and appear right before the sample code. I have a legitimate need to launch an EXE...
2
8134
by: db2inst2 | last post by:
Hi all, I am using win2K db2 8.1 fixpak 2. lately db2syscs.exe started using 100% CPU. This will be the load on the DB. An application will connect to the machine every 10minutes and do few...
5
4278
by: RickDee | last post by:
Please help, anybody. I am trying to write a program so that it can launch an exe file ( which is also genereated in C# ) and then simulate the button clicking and invoke the methods inside the...
0
2182
by: qh0st | last post by:
Hi all. I have a frustrating issue that I can't seem to figure out. EXPERTS please help me~! Deadline is coming up soon~! My task is to localize a winform application. The .Net Designer...
3
3422
by: Frank Rizzo | last post by:
How can I force an .EXE to use a different app.config file? For instance, I have an MyApp.exe which by default uses MyApp.exe.config file. Can I force it to use ThatApp.exe.config? Thanks
7
2798
by: IntraRELY | last post by:
I am using the following command to launch and .NET VB Executable, which is a simple Windows Form (printCheckClient.exe). I am using a HyperLink Control and works perfect....
1
2647
by: ray well | last post by:
hi, i need to deploy MDAC_typ.exe and dotnetfx.exe with an app. i do NOT want the user to have to exit the app's setup and have to run these 2 programs on their own. i would like to have my...
1
4029
by: Mike L | last post by:
How do I push out a new version of my C# exe file to all the client computers? The client computers are in my local area network, and I have administrator rights. Currently I walk over to each...
0
7115
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
7154
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
7190
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
7360
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
5451
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,...
1
4881
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...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.