Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 31-10-2009
Member
 
Join Date: Jun 2009
Posts: 403
Share single file for several projects without creating DLL

Here is my problem.

In VS 2010, how to share a file in several class projects in a given solution without creating a DLL. The file consists of a single class for interfacing with the rapid system DLLs (PInvoke). I have several executables (= number of projects) to create using this class. I do not want to create a DLL (no new class library project). But I can not find how to keep VS 2010 to make multiple copies of the file class. Obviously I do not want me having to modify all.
Reply With Quote
  #2  
Old 31-10-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: Share single file for several projects without creating DLL

When you do "add existing item", does that recopy? Usually, I just did a project in these cases, so I created a DLL with all the benefits thereof. And why you do not want to create a DLL?
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #3  
Old 31-10-2009
Member
 
Join Date: Nov 2008
Posts: 1,054
Re: Share single file for several projects without creating DLL

I have a Visual C++ 2005 with several projects. These projects have sources in common, that I added by "Add Existing Item". It is not a copy, I do not understand why in your case it makes a copy.

But this is not necessarily a good solution. I suggest you rather share your common sources via an additional project in your solution (do not have a "dll", just a simple lib), its still the best solution.
Reply With Quote
  #4  
Old 31-10-2009
Member
 
Join Date: Jun 2009
Posts: 403
Re: Share single file for several projects without creating DLL

Thank you for your responses.

Quote:
And why you do not want to create a DLL?
Because the programs are distributed to special users a little. I therefore prefer to have a compact application that hold in a single file.

I confirm that on my installation, the add of an existing item is a copy of the source in the project.

Quote:
But this is not necessarily a good solution. I suggest you rather share your common sources via an additional project in your solution (do not have a "dll", just a simple lib), its still the best solution.
Yes that is what I would do it but I can not: the "class library" generates a DLL. Can not make it generate a static library. I work in C# and I do not know if it has an influence. Have you any idea?
Reply With Quote
  #5  
Old 31-10-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: Share single file for several projects without creating DLL

In my opinion, yes, I have never seen a concept of "lib" in C#, its a concept of C++ only basically. If I am not mistaken, a lib is just what you need is some sort of DLL that is part of the project that needs it (so your DLL or EXE)
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Share single file for several projects without creating DLL"
Thread Thread Starter Forum Replies Last Post
NTFS Permission - Prevent User Saving or Creating new files on share qtime Windows Software 1 06-10-2011 04:26 PM
Name of the AVG executable file that is required for the single file scan? RaAbi Networking & Security 5 10-08-2011 06:15 AM
How to share 2 Internet Connections in single PC to increase download speed joelbawe Networking & Security 1 13-09-2010 11:45 PM
Windows 2008 File Cluster - file share scoping Jonas_Bson Windows Server Help 8 16-03-2009 09:07 PM


All times are GMT +5.5. The time now is 07:54 AM.