[dba-VB] Add executable solution to project

John W. Colby jwcolby at colbyconsulting.com
Fri Jul 22 11:45:19 CDT 2005


Yes, but as soon as I do that, then I am right back to the "namespace
system.data cannot be found".  For some reason, the namespaces I use in that
class library are valid in a "class library" but are not valid in a "Windows
Application".

John W. Colby
www.ColbyConsulting.com 

Contribute your unused CPU cycles to a good cause:
http://folding.stanford.edu/

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris
Manning
Sent: Friday, July 22, 2005 12:35 PM
To: dba-vb at databaseadvisors.com
Subject: RE: [dba-VB] Add executable solution to project


Sorry.  That trick does work with a homegrown User Control dll.

This will definitely work...Add an Existing Item to your project.  Navigate
to where your class object code module is.  Select it and hit the down arrow
next to the "Open" button.  Choose "Link File" and it will connect that code
module to the current project.

Doris Manning
Database Administrator
Hargrove Inc.

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby
Sent: Friday, July 22, 2005 12:24 PM
To: dba-vb at databaseadvisors.com
Subject: RE: [dba-VB] Add executable solution to project

>Do your debugging work on the class through the project that references
them.  Just right click on a property or method of the class object and
choose "Definition".  You will then be taken to the class itself.

Not working here.  I am taken to the object browser and shown the properties
and methods of the object, but not the object.  I referenced the DLL
however.  I did not see a way to reference the actual "source" (project).

John W. Colby
www.ColbyConsulting.com 

Contribute your unused CPU cycles to a good cause:
http://folding.stanford.edu/

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris
Manning
Sent: Friday, July 22, 2005 11:35 AM
To: dba-vb at databaseadvisors.com
Subject: RE: [dba-VB] Add executable solution to project


Do your debugging work on the class through the project that references
them.  Just right click on a property or method of the class object and
choose "Definition".  You will then be taken to the class itself.

The really cool part about all this is that any changes you make to the
class object will automatically be picked up by any other project that
references that class dll.

Doris Manning
Database Administrator
Hargrove Inc.

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby
Sent: Friday, July 22, 2005 11:24 AM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] Add executable solution to project

I am working on a set of classes in a project which need 

Imports System.Data.OleDb
Imports System.Data
Imports System.Collections

I was developing them in a class library, and all is cool.  However I can't
just throw a form in there and run the thing to test it, I get a "cannot be
started directly" error.  So... I tried just copying the classes (all in one
module, THAT is cool) into a window project.  Of course(?) now the imports
don't work.  Sigh.

So I created a Window project and referenced the dll from my class library.
That is cool as well, however... I really want to interactively debug the
class library.  The error message when trying to run the class library code
(directly) says to "add an executable project to this solution which
references the library project".  I can't seem to find any way to directly
add my window project (which references the class library) to the class
library solution.  

Anybody know how to do this?  

This BTW is exactly why I have never gotten anywhere with .net so far.  I
promptly get bogged down in details with no readily available help.

John W. Colby
www.ColbyConsulting.com 

Contribute your unused CPU cycles to a good cause:
http://folding.stanford.edu/



_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com



_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com




_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com



_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com







More information about the dba-VB mailing list