Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2004, 02:22 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default Importing VB files into a solution

Hi,

How do you bring a vb file from one solution into another and have the classes be available?

I'm doing a VB ASP.NET project, and want to bring in a vb file that has all the classes from my E-Commerce providers API. When I try to inherit from that file, I get the blue underline and the message that the type is not defined.

Thanks!

 
Old October 21st, 2004, 12:37 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think I may have answered my own question. in the solution explorer, you have to right click the file, and select "add to project" Pretty lame actually, because if you've bothered to add it to the solution, no doubt you also want it in the project.

Also, their API came with some DLLs that I had to add a reference to.

Does anyone know a good online explanation of solutions vs. projects and how VS.NET organizes and builds them?

Thanks.

 
Old October 29th, 2004, 10:56 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Solution: Collection of projects.
Project: Collection of files (code/pages/xml/etc.). Each project represents one assembly (EXE or DLL).

You can put files in a solution, but they are not compiled. In order to add compiled code to an application, you must put the code file in a project.

Visual studio will determine what order to build the projects based on the projects' references.


How did you add the file to the solution? Usually, if you drag a drop a file on to a project file, it will copy the file to the project's physical directory and add the file to the project tree.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Multiple Files Into Excel Using VB bsac Excel VBA 4 January 27th, 2014 11:37 AM
importing external asp files? neddyoats Classic ASP Basics 2 February 6th, 2007 07:26 PM
importing files hotshot_21 VB.NET 2002/2003 Basics 0 January 5th, 2006 06:34 AM
Importing files in Access kathy stratton Access 6 February 2nd, 2005 07:49 AM
Importing text files into a worksheet seidici Excel VBA 2 March 19th, 2004 04:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.