473,380 Members | 1,387 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,380 software developers and data experts.

Wrapping several DLLs in one "virtual" dll?

Hi,

I'm programming some classes in order to be able to import different
text formats (TXT, RTF, HTML, ...) to my own format called RUF.

I've defined one Solution within several Projects, each one is focused
in one specific format, includes from 5 to 15 classes and produces one
DLL.

Solution GATEWAY:
- Project TXTClasses: [5 classes] -> TXTClasses.dll
- Project RTFClasses: [15 classes] -> RTFClasses.dll
- Project HTMLClasses: [12 classes] -> HTMLClasses.dll
- Project Gateway: [32 classes?] -> Gateway.dll ?

The problem is that although my current "big application" needs *all*
the classes I dont want to put all the classes in just one Project,
mainly due to two reasons:

a) to have a Solution with only one Project with 30-50 classes in it is
a big mess.

b) in future I will develop other small programs that will need to
acces to only one format (for example only to the RTFClasses.dll)

The questions are:

1) Can I build a "virtual" Gatewal.dll that wrappes all reminder dlls?
2) How can I solve this requirements? are they too odd?

thanks,

Francesc

Nov 24 '05 #1
5 3365
Hi
Might have got the wrong end of the stick, but why do you need to
bundle your dlls in on super dll. Just reference each dll needed in you
application.

OK you might have to include 4 or 5 references, but so what. In your
smaller projects you may not require all the functionality that would
be in your super dll, so this might actually save you adding unrequited
stuff. Also for future maintenance, having multiple dlls, may allow you
to swap and change any one of these for a new version.
regards

Nov 24 '05 #2
"Phil Mc" schrieb:
Hi
Might have got the wrong end of the stick, but why do you need to
bundle your dlls in on super dll. Just reference each dll needed in
you application.

OK you might have to include 4 or 5 references, but so what. In your
smaller projects you may not require all the functionality that would
be in your super dll, so this might actually save you adding
unrequited stuff. Also for future maintenance, having multiple dlls,
may allow you to swap and change any one of these for a new version.
regards


That's correct, as adding asssemblies is not something that we do 25
times a day :-)

If you have a common interface or base class for the conversion task, I
would recommend to package those classes into a seperate DLL. If you
implement an AbstractFactory, or use some "Depenency Injection
Container" library (http://tinyurl.com/444k5, http://tinyurl.com/c2swr)
you can reach your goal of seperation all the code and minimize the
discovery of the concrete objects.

HTH,
Andy
--
To email me directly, please remove the *NO*SPAM* parts below:
*NO*SPAM*xmen40@*NO*SPAM*gmx.net
Nov 24 '05 #3
a) to have a Solution with only one Project with 30-50 classes in it is
a big mess.
Really? A project of that size is pretty small to me.

b) in future I will develop other small programs that will need to
acces to only one format (for example only to the RTFClasses.dll)
Would it be a problem if they loaded a single DLL with support for
other formats?

1) Can I build a "virtual" Gatewal.dll that wrappes all reminder dlls?


There's no such thing as a virtual DLL. But you can merge multiple
assemblies to one with tools like these

http://research.microsoft.com/~mbarnett/ILMerge.aspx
http://www.gotdotnet.com/community/u...x?query=ILLINK
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 24 '05 #4
Hello,

How about looking into the new provider model of .net 2.0? That way you can
very, very easily create dynamic references to only the converters you need
by just declaring them in the web.config, and maybe create a factory to give
you an instance of the correct converter as needed....
Morten
"Francesc" <fb*******@cogitoergosum.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hi,

I'm programming some classes in order to be able to import different
text formats (TXT, RTF, HTML, ...) to my own format called RUF.

I've defined one Solution within several Projects, each one is focused
in one specific format, includes from 5 to 15 classes and produces one
DLL.

Solution GATEWAY:
- Project TXTClasses: [5 classes] -> TXTClasses.dll
- Project RTFClasses: [15 classes] -> RTFClasses.dll
- Project HTMLClasses: [12 classes] -> HTMLClasses.dll
- Project Gateway: [32 classes?] -> Gateway.dll ?

The problem is that although my current "big application" needs *all*
the classes I dont want to put all the classes in just one Project,
mainly due to two reasons:

a) to have a Solution with only one Project with 30-50 classes in it is
a big mess.

b) in future I will develop other small programs that will need to
acces to only one format (for example only to the RTFClasses.dll)

The questions are:

1) Can I build a "virtual" Gatewal.dll that wrappes all reminder dlls?
2) How can I solve this requirements? are they too odd?

thanks,

Francesc

Nov 25 '05 #5
Hi,

Thanks for your replies and for your ideas. I am quite new to C# and
some of your suggestions are to hard to implement and other even to
understand, then I will follow Phil and Andreas suggestion and their
"modularity" way, as they said adding individual references is not too
much work.

The only question that stills annoys to me is that if I want to
"protect" the DLLs with some registered license feature it would be
easier to pack all them in just one DLL ... but I think that given my
unknowledge on the subject I should not think about so "tiny details".

I'll peek this links to learn a bit more, thanks,

Francesc

Nov 28 '05 #6

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

Similar topics

14
by: mshetty | last post by:
Hi, I get an error "Warning: b::a_method hides the virtual function a::a_method()." on compiling the following code.. #include <iostream.h> class a {
6
by: kelvSYC | last post by:
This little bit of seeminly innocent code seems to give me these two errors, all on the line that declares check(). Is there some part of C++ that I'm missing out on? class Condition { public:...
175
by: Ken Brady | last post by:
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be...
4
by: Jon Shemitz | last post by:
Syntax seems to say "modifiers is modifiers" and either is valid, but Google searches seem to show that "public virtual" is more common. Is there any sort of (semi) official convention? -- ...
7
by: desktop | last post by:
This page: http://www.eptacom.net/pubblicazioni/pub_eng/mdisp.html start with the line: "Virtual functions allow polymorphism on a single argument". What does that exactly mean? I guess it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.