2 projects

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

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
 
Hello,

Paul said:
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.
 
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
 
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
 
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
 
Back
Top