473,503 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3372
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
1881
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
9723
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
8641
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
8475
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
2459
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...
0
7205
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,...
0
7093
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...
0
7287
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,...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5592
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,...
1
5021
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...
0
4685
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...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.