PC Review


Reply
Thread Tools Rate Thread

Creating multiple output files. (EXE and DLLs)

 
 
ChrisM
Guest
Posts: n/a
 
      5th Sep 2006
Hi,

I have a C# project that is currently a standalone application. (It compiles
to create a single EXE file).
A new project that I have now been given to work on needs to be a separate
application, but it could share some of the functionality of the other
project. The obvious solution seems to be to compile the original
application to create the EXE file plus a DLL containing the common stuff,
then I can reference the DLL with the second project as well and use the
common classes.
Problem is, I don't know how to 'spilt' my original app so that some classes
are built into the EXE, and others are built into the DLL.
If anyone could give me some pointers (ideally a tutorial or somthing) I
would be most grateful.

Thanks,

Chris.


 
Reply With Quote
 
 
 
 
Lebesgue
Guest
Posts: n/a
 
      5th Sep 2006
Create a second project in solution which will be a class library project.
Move the files with classes needed in both projects into the class library
project. Add reference to the class library project in your main project
(the one which compiles into exe). That's it.

"ChrisM" <(E-Mail Removed)> wrote in message
news:%23y$(E-Mail Removed)...
> Hi,
>
> I have a C# project that is currently a standalone application. (It
> compiles to create a single EXE file).
> A new project that I have now been given to work on needs to be a separate
> application, but it could share some of the functionality of the other
> project. The obvious solution seems to be to compile the original
> application to create the EXE file plus a DLL containing the common stuff,
> then I can reference the DLL with the second project as well and use the
> common classes.
> Problem is, I don't know how to 'spilt' my original app so that some
> classes are built into the EXE, and others are built into the DLL.
> If anyone could give me some pointers (ideally a tutorial or somthing) I
> would be most grateful.
>
> Thanks,
>
> Chris.
>



 
Reply With Quote
 
ChrisM
Guest
Posts: n/a
 
      5th Sep 2006
Ahh, Ok, think I get the idea. Will go away and give it a go...
I'll let you know if I have any problems!! :-)

Cheers,

Chris

"Lebesgue" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Create a second project in solution which will be a class library project.
> Move the files with classes needed in both projects into the class
> library project. Add reference to the class library project in your main
> project (the one which compiles into exe). That's it.
>
> "ChrisM" <(E-Mail Removed)> wrote in message
> news:%23y$(E-Mail Removed)...
>> Hi,
>>
>> I have a C# project that is currently a standalone application. (It
>> compiles to create a single EXE file).
>> A new project that I have now been given to work on needs to be a
>> separate application, but it could share some of the functionality of the
>> other project. The obvious solution seems to be to compile the original
>> application to create the EXE file plus a DLL containing the common
>> stuff, then I can reference the DLL with the second project as well and
>> use the common classes.
>> Problem is, I don't know how to 'spilt' my original app so that some
>> classes are built into the EXE, and others are built into the DLL.
>> If anyone could give me some pointers (ideally a tutorial or somthing) I
>> would be most grateful.
>>
>> Thanks,
>>
>> Chris.
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Creating Multiple Tab Excel Output File Jeanette Cunningham Microsoft Access Macros 0 7th May 2008 11:47 AM
Creating multiple output files. (EXE and DLLs) ChrisM Microsoft Dot NET 2 5th Sep 2006 10:41 AM
Creating one query that creates multiple output table jlmr Microsoft Access Forms 6 7th Aug 2006 10:33 PM
Problem creating multiple .dlls that depend on each other =?Utf-8?B?TWljaGFlbCBM?= Microsoft VC .NET 3 16th Jul 2005 01:15 PM
Creating multiple content display output from database robin9876@hotmail.com Microsoft ASP .NET 3 29th Jun 2005 04:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 AM.