473,545 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

including specific files in a build

Hi,

How do I select files from a project that I want included
in a library. I have a bunch of forms and a bunch of class
files. I want just the class files included in the library
and not the forms. The forms need to be built into a Win32
application.

Any idea?

Thank you
Aashish
Nov 16 '05 #1
4 1305
By library, I assume you mean "DLL"?
The .Net term is "assembly".

If you are using Visual Studio, simply place the files that you want to
occur in a single assembly in a single project.

Your app would have two projects. One would be compiled to a dll. The
other would be compiled to an exe.

Does this help?

--- Nick

"Aashish" <aa**********@h otmail.com> wrote in message
news:03******** *************** *****@phx.gbl.. .
Hi,

How do I select files from a project that I want included
in a library. I have a bunch of forms and a bunch of class
files. I want just the class files included in the library
and not the forms. The forms need to be built into a Win32
application.

Any idea?

Thank you
Aashish

Nov 16 '05 #2
Hi,

Thanks for the reply. Yes I was referring to a dll.

Thats one way to do it. However, I was wondering if there was some way
to select files from one project itself to create a dll.

Regards
Aashish
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
Yes... you can create a new project and link in the files from the old
project. Not sure why you'd want to do this... it would be pretty frail.

To link in a file, create the new project. In VS, select the project in the
solution explorer, right click, and select "Add Existing Item".
In the browse dialog, find the old file. Instead of selecting the default
button, you will see a drop-down arrow right next to the button (I don't
remember the text of the default button right now... sorry). click the
drop-down and select "link file"

Better way, create the dll with the base classes and link the DLL into BOTH
the old project and the new one.

--- Nick

"Aashish Patil" <aa**********@h otmail.com> wrote in message
news:OD******** ******@TK2MSFTN GP11.phx.gbl...
Hi,

Thanks for the reply. Yes I was referring to a dll.

Thats one way to do it. However, I was wondering if there was some way
to select files from one project itself to create a dll.

Regards
Aashish
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4
Hi Nick,

I eventually ended up creating two different projects. Just dragged the
needed files from one project to another.

To clarify what I wanted:
I am just migrating from Java and in Eclipse Java IDE, its possible to
select specific Java packages from a source tree that need to be
included in a Java Archive (jar). I was wondering whether something
similar was possible in VS.NET

Thanks again for your help

Aashish

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #5

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

Similar topics

4
1814
by: WindAndWaves | last post by:
Hi Gurus I hope I am going to make sense with this question: I have an html page that I have turned into a php page with a bit of php code above the html (connect to database, massage data a little, mix with html, etc...). Now, I would like to use a function in my php code, as otherwise I have to type the same thing over and over again....
2
1376
by: Jon Slaughter | last post by:
<I previously posted this in comp.os.misc, but no one answered and its been 3 days... actually no one has posted any messages at all(atleast they are not showing up), so, while it might not be completely on-topic, and I know how this news group is very bitchy about off topic messages, it is none-the-less close enough(IMO)> is there a C++...
6
2291
by: Alan Krueger | last post by:
Is there a way to automatically include C# files (.cs) generated by a third-party tool into a Visual C# .NET build? It's possible the set of files generated by this tool might change. Adding these files manually to the project would work in the short term, but this would require manual intervention if these generated files happened to...
1
1183
by: Claire | last post by:
Hi, sorry I'm not sure if Im posting this to the correct group. I need to include a couple of external applications to be copied to my bin/debug folders at the same time as my solution is built. I'm not sure if/how I can do this in vs .net 2003. These are older win 32 3rd party applications that install firmware onto embedded handhelds. I...
8
3036
by: nrhayyal | last post by:
Hi c++ Gurus, Need your blessing. while testing few aspects with respect to header file inclusions, i observed few things which i would like to share with you. i have a file sqlca.h in which a structure sqlca is declared. i included this file as a soft link in /usr/include. the soft link is as follows: sqlca.h ->...
31
3571
by: Joseph Wakeling | last post by:
Hello all, I'm writing some programs that will be using modules from the GNU Scientific Library (GSL). Include commands within the GSL modules have commands such as, #include <gsl/gsl_rng.h> (for example). Yet these header files aren't actually in the gsl
3
7091
by: Steve Teeples | last post by:
I have a simple application built with several DLLs that access XML files for information. My local setup works just fine. As defined in my Install folder, the files are copied to the "application folder" and the DLLs find them just fine. However, when I publish the same application to a local server for users to use the "click once"...
65
5024
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but got errors of Failed to open file ./outdir/mytestout.txt. Below is the code: #include <stdio.h>
3
2564
by: KIRAN | last post by:
Hello all, My question is about the way of including header files(*.h) in source files (*.c) I have three folders, -build ( for project makefiles) -include ( for *.h files) -src (for *.c files). I know that there are two ways of specifying include path of header files
0
7478
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7410
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...
0
7668
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. ...
1
7437
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...
0
5984
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5343
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...
0
4960
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...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
722
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...

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.