473,320 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1293
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**********@hotmail.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**********@hotmail.com> wrote in message
news:OD**************@TK2MSFTNGP11.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
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...
2
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...
6
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...
1
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....
8
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...
31
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...
3
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...
65
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...
3
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.