473,396 Members | 1,834 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,396 software developers and data experts.

2 projects

Hi,
I have two VB .Net solutions (call them A and B). They are both Windows
Applications. One of them (B) has a class (B.class) that i need to
reference from the other project (A).
So my question is this. How do i reference B.class in the IDE debuginng
enviornment from project A?
Everytime I try this, it launches the compiled exe and not the debug
enviornment that i have running.
I hope this is clear.

Paul
Nov 20 '05 #1
5 1288
Hello,

"Paul" <pa**@gotheta.com> schrieb:
I have two VB .Net solutions (call them A and B). They are
both Windows Applications. One of them (B) has a class
(B.class) that i need to reference from the other project (A).
So my question is this. How do i reference B.class in the IDE
debuginng enviornment from project A?


You can only reference Libararies, not Windows Forms applications.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
Ok...well, i convereted convereted project B to a Library.
Now when i go to launch B it needs an exe.
So this would be a good time to explain this project further.
There are actually 3 projects. We are converting to .Net from VB6.
I have the three converted to .Net, but i need to test them.
So lets call them A B and C.
A will create some number, x, of references to B.class. For every B.class
that is instantiated, C.class is instaited also.
Part of the delima is that A is running as a service and uses a third party
control that requires A to be a .dll and in order for A to be run in the
debug env., it must launch an external .exe.
So A is pretty much untouchable.
So in order to launch B from A, i would need to put B as a .dll. But in
order to run B in the debug env.as a .dll, i need to have it launch an
executable. So my only option is to launch C.
So I run C in the debug env.
Then I set B to launch C as an external exe.
Then I run B and it launches the compiled version of C, not the debug env.
So theoretically A can be left out for now, but i left it in here hoping it
would help you to see the dilemma i am in.
I know this is complex and can be hard to understand, but i have done all i
can think of. I have been working on all these steps for a good 12 hours
now. I figured i would start off with a basic question and go from there.
So now, i feel i must give the details.
I would greatly appreciate any help i can get on this. Even if it is to
tell me that what i need to do is impossible.

Thank you,
Paul

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:Ou**************@tk2msftngp13.phx.gbl...
Hello,

"Paul" <pa**@gotheta.com> schrieb:
I have two VB .Net solutions (call them A and B). They are
both Windows Applications. One of them (B) has a class
(B.class) that i need to reference from the other project (A).
So my question is this. How do i reference B.class in the IDE
debuginng enviornment from project A?


You can only reference Libararies, not Windows Forms applications.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #3
Furthermore, if I were to convert C to a .dll, I would not be able to run it
in the debug env. Because it has not .exe to launch. I am needing to test B
and or C in the debug env. A, B, and C are inseparable. The way the
architecture works requires A to launch an instance of B which launches an
instance of C.

Paul
"Paul" <pa**@gotheta.com> wrote in message
news:uk**************@tk2msftngp13.phx.gbl...
Ok...well, i convereted convereted project B to a Library.
Now when i go to launch B it needs an exe.
So this would be a good time to explain this project further.
There are actually 3 projects. We are converting to .Net from VB6.
I have the three converted to .Net, but i need to test them.
So lets call them A B and C.
A will create some number, x, of references to B.class. For every B.class
that is instantiated, C.class is instaited also.
Part of the delima is that A is running as a service and uses a third party control that requires A to be a .dll and in order for A to be run in the
debug env., it must launch an external .exe.
So A is pretty much untouchable.
So in order to launch B from A, i would need to put B as a .dll. But in
order to run B in the debug env.as a .dll, i need to have it launch an
executable. So my only option is to launch C.
So I run C in the debug env.
Then I set B to launch C as an external exe.
Then I run B and it launches the compiled version of C, not the debug env.
So theoretically A can be left out for now, but i left it in here hoping it would help you to see the dilemma i am in.
I know this is complex and can be hard to understand, but i have done all i can think of. I have been working on all these steps for a good 12 hours
now. I figured i would start off with a basic question and go from there.
So now, i feel i must give the details.
I would greatly appreciate any help i can get on this. Even if it is to
tell me that what i need to do is impossible.

Thank you,
Paul

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:Ou**************@tk2msftngp13.phx.gbl...
Hello,

"Paul" <pa**@gotheta.com> schrieb:
I have two VB .Net solutions (call them A and B). They are
both Windows Applications. One of them (B) has a class
(B.class) that i need to reference from the other project (A).
So my question is this. How do i reference B.class in the IDE
debuginng enviornment from project A?


You can only reference Libararies, not Windows Forms applications.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet


Nov 20 '05 #4
You should be able to compile the library as an EXE. It will mean that you
designate a startup component, but that's done easily enough by defining a
"Sub Main" subroutine. I've had a similar problem when working with
VB2002 - if that's the platform you're using, you'll find that VB2002 will
prompt you with the error, and may ask you which component you want to
designate as a startup.

HTH

Ian
"Paul" <pa**@gotheta.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Furthermore, if I were to convert C to a .dll, I would not be able to run it in the debug env. Because it has not .exe to launch. I am needing to test B and or C in the debug env. A, B, and C are inseparable. The way the
architecture works requires A to launch an instance of B which launches an
instance of C.

Paul
"Paul" <pa**@gotheta.com> wrote in message
news:uk**************@tk2msftngp13.phx.gbl...
Ok...well, i convereted convereted project B to a Library.
Now when i go to launch B it needs an exe.
So this would be a good time to explain this project further.
There are actually 3 projects. We are converting to .Net from VB6.
I have the three converted to .Net, but i need to test them.
So lets call them A B and C.
A will create some number, x, of references to B.class. For every B.class that is instantiated, C.class is instaited also.
Part of the delima is that A is running as a service and uses a third party
control that requires A to be a .dll and in order for A to be run in the
debug env., it must launch an external .exe.
So A is pretty much untouchable.
So in order to launch B from A, i would need to put B as a .dll. But in
order to run B in the debug env.as a .dll, i need to have it launch an
executable. So my only option is to launch C.
So I run C in the debug env.
Then I set B to launch C as an external exe.
Then I run B and it launches the compiled version of C, not the debug env. So theoretically A can be left out for now, but i left it in here hoping

it
would help you to see the dilemma i am in.
I know this is complex and can be hard to understand, but i have done all i
can think of. I have been working on all these steps for a good 12

hours now. I figured i would start off with a basic question and go from there. So now, i feel i must give the details.
I would greatly appreciate any help i can get on this. Even if it is to
tell me that what i need to do is impossible.

Thank you,
Paul

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:Ou**************@tk2msftngp13.phx.gbl...
Hello,

"Paul" <pa**@gotheta.com> schrieb:
> I have two VB .Net solutions (call them A and B). They are
> both Windows Applications. One of them (B) has a class
> (B.class) that i need to reference from the other project (A).
> So my question is this. How do i reference B.class in the IDE
> debuginng enviornment from project A?

You can only reference Libararies, not Windows Forms applications.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet



Nov 20 '05 #5
Paul,

What you should be able to do is remove the existing reference from project
A, then add it back as a project reference. This should allow you to
debug both classes.

Thanks! Robert Gruen
Microsoft, VB.NET

This posting is provided "AS IS", with no warranties, and confers no rights.

--------------------
| From: "Paul" <pa**@gotheta.com>
| Subject: 2 projects
| Date: Thu, 11 Sep 2003 11:08:18 -0700
| Lines: 13
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#6**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: adsl-66-122-1-250.dsl.bkfd14.pacbell.net 66.122.1.250
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:136750
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Hi,
| I have two VB .Net solutions (call them A and B). They are both Windows
| Applications. One of them (B) has a class (B.class) that i need to
| reference from the other project (A).
| So my question is this. How do i reference B.class in the IDE debuginng
| enviornment from project A?
| Everytime I try this, it launches the compiled exe and not the debug
| enviornment that i have running.
| I hope this is clear.
|
| Paul
|
|
|

Nov 20 '05 #6

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

Similar topics

11
by: Brett C. | last post by:
For my thesis (once the bloody thing stops throwing bugs at me) I am going to need to collect stats on the frequency that atomic types in local variables are applied to various opcodes and methods....
1
by: Adriaan Renting | last post by:
I think the point you want to make is that Python needs vastly less lines of code as a similar application written in C++. I think Python might on average be 50-60% of comparable C++ code, but not...
5
by: Tinius | last post by:
I have created a class which I wish to reuse amongst several projects. But each time I Add the class to a new project, it creates a copy of that class in the folder of the new project. This means...
16
by: Robert W. | last post by:
I'm building a solution that has 1 component for the Desktop and 1 component for the Pocket PC. (Though this isn't a mobile question). I have a data library that will be shared on both platforms....
10
by: Gerben van Loon | last post by:
Hi there, hope someone can help me on this: I'm planning to deploy several ASP.NET projects to a production server. Normally I used the "Project / Copy project" option in VS.NET, but to this...
3
by: epigram | last post by:
I've been creating some toy ASP.NET apps in an effort to understand the technology. I've something odd with regards to project/solution creation. If you create a new asp.net application, it...
0
by: AC [MVP MCMS] | last post by:
I have a full blown VS.NET 2003 solution with a handful of library assemblies, two web projects, and a few web service projects. The entire solution is in VSS. Recently our build server went...
1
by: eagle | last post by:
I have 2 asp.net projects that I have build together as one solution, sharing procedures, etc. One project is for staff members, the other is for admin members. Pretty typical, where the...
1
by: =?Utf-8?B?RG91Zw==?= | last post by:
We have a very large code base and use the partitioned solution model for development and deployment. The problem is that in .NET 2005 the setup projects cause severe performance problems when...
3
by: Glenn | last post by:
My current classic-ASP site has users, projects, roles and the 2.0 membership looks like a perfect fit, but I'm having trouble finding examples of how to have users that belong to different...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.