473,657 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to add a class library to an existing Windows application?

Hello

Using VS 2005 VB.net when a class library gets created you can right click
the project and add a Windows Application and then set it as the "startup
project" then in the Windows application you can add a reference to that
class library in the project by right clicking the Windows Application and
selecting "Add Reference" and you will see the project under the "Projects"
tab and add the project containing its class library to the Windows
application and the application will work.

However if you have an existing Windows Application and you right click it
and select "Add Reference" there won't be a Project with its class library in
the "Projects" tab, even if you browse for one all you will see are the
folders that contain projects. So the question is if you have an existing
Windows application:

How do you add an existing Project with its class library to an existing
Windows Application instead of adding a Windows Application to a existing
class library?
Sep 20 '07 #1
1 3950
"winlin" <wi****@verizon .comschrieb
Hello

Using VS 2005 VB.net when a class library gets created you can right
click the project and add a Windows Application and then set it as
the "startup project" then in the Windows application you can add a
reference to that class library in the project by right clicking the
Windows Application and selecting "Add Reference" and you will see
the project under the "Projects" tab and add the project containing
its class library to the Windows application and the application
will work.

However if you have an existing Windows Application and you right
click it and select "Add Reference" there won't be a Project with
its class library in the "Projects" tab, even if you browse for one
all you will see are the folders that contain projects. So the
question is if you have an existing Windows application:

How do you add an existing Project with its class library to an
existing Windows Application instead of adding a Windows Application
to a existing class library?
Menu File -Add -Existing project

?
Armin
Sep 20 '07 #2

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

Similar topics

1
7765
by: Bartlomiej Borowicz | last post by:
of course a read instrucitio and i did everythink, but i still can't use that library :( --- Setting up Dev-C++ to build Allegro Some people prefer to use the Dev-C++ distribution to make Allegro programs. Dev-C++ is a neat development IDE and includes an updated MingW32 compiler. Please do not unzip or install anything until step 4.
6
6172
by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at http://groups.google.com/groups?hl=en&lr=&threadm=%23Van7eSrEHA.4004%40TK2MSFTNGP10.phx.gbl&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26selm%3D%2523Van7eSrEHA.4004%2540TK2MSFTNGP10.phx.gbl I have concluded that my .NET class library (following the suggestions. namely setting the marshall type, etc.) , I can 1) Invoke public methods...
7
2147
by: Sonny | last post by:
I need to port a library that is written entirely in C to C++. The library is supported on quite a few platforms (windows, Solaris, Linux, AIX, HP-UX, OSX, etc...) and there's quite an existing customer base that uses it. I need to maintain backwards compatibility such that existing users won't have to do anything to their existing applications other than a re-compile when they upgrade to this new version of the library. I figure that I...
16
2447
by: Randy Yates | last post by:
I have an Access database that has been running fine on multiple platforms (Windows 2000, Windows XP, etc.) for several years. Recently, the database has begun to issue "Run-Time Error 2467" on one XP platform when certain forms are opened. Other forms result in a total application crash with the resulting "Bug Report" dialog sequence. The same forms within the same application run fine under Win2000. I'm wondering if this is due to...
7
3889
by: TJ | last post by:
In C# how do you achieve pass-by-reference property declarations in the Type Library? I am writing a COM Class Library that must mimick an existing library for which the only information is the TypeLib. I'm using Visual Studio .NET 2003. The original library provides simple authentication services, from Access and MS-SQL OLEDB providers. The enhancement I'm creating provides support for ODBC and will be a drop-in replacement.
2
1395
by: Ben Finney | last post by:
Howdy all, I'm trying to implement some new functionality for an existing PHP web application. Rather than writing a whole lot of stuff in PHP, and looking toward a future when more of the application can be rewritten more sanely, I'd like to write a Python program that generates the content and serves it up to the existing application via HTTP. The existing architecture is as expected:
0
1019
by: James MA | last post by:
I'm going to develop a common library for applications in both Windows and Windows Mobile, this library will contain the bussiness rule only, which only contain some simply mathematics, and it should be machine independent. The common library should work even under the Compact Framework. I have created a solution to contain both Windows & Windows Modile application projects, and a seperate project for the common library. There has a...
5
17116
by: Preben Zacho | last post by:
Anyone that has a link or description that simply as possible shows how to add a web reference to a class library in C# and consuming it? TIA PZ
2
3889
by: mma | last post by:
hello everyone, i have a solution that contains the following project types: 1. Class library contains a singleton class that handles the data access (sql server 2005). 2. Windows service. uses the Class library's singleton class to manipulate data in the data base server. 3. Windows application.
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8826
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6166
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.