473,406 Members | 2,378 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,406 software developers and data experts.

Developing and Consuming a Class

I work in vb.net and utilize some functionality which is based upon some
external classes which I currently reference in my application. These
external classes all contribute to a single area of functionality in my
application. I would like to create a new class for my application which
rolls up these external classes into one class which my application can
consume.

I create a new class library and referenced my external classes. I built
the new class and added it to my application. I get an error that my
application is missing the old classes that I use to reference. Is there
some step I am missing in creating my rollup class.

Fred
Jul 21 '05 #1
2 1264
Based on your description I've come up with the following. First, each
of the external classes is actually in their own individual assembly
file (e.g. DLL). Second, what you want to do is somehow wrap all of
these individual assembly files up into a single distributable DLL file
that can be accessed by consuming applications without having to
distribute each of the smaller files individually. If that is the case
I don't believe you can do this in VB.Net. If this is not the case you
need not read any further because I'm about to explain something you
aren't asking about.

When you reference an external assembly you get just that, a reference
to it; you do not get it's code wrapped up into your own assembly. This
is true whether the external assembly is yours or a third party. What
sometimes gets confusing here is that you see that you can reference
Microsoft assemblies (like System.Data) and don't have to distribute
them to get the application to work, this is because they have been
installed in the Global Assembly Cache (GAC) of every .Net installed
machine; what you don't see is that the real DLL for these referenced
assemblies are on the machine, they are just in the GAC install
location. You could do this same thing with your assemblies but it
would mean a whole lot more work (check MSDN about strong named
components and the GAC).

What you basically get stuck with is creating a facade (it's a design
pattern) assembly that consumers can reference to have a single location
to call for functionality without having to know the details of all the
"rolled up" classes and assemblies. However you still need to deliver
all the assemblies (your "rolled up" one and the ones that were "rolled
up" to the consumers of the application.

Have A Better One!

John M Deal, MCP
Necessity Software

Fred Herring wrote:
I work in vb.net and utilize some functionality which is based upon some
external classes which I currently reference in my application. These
external classes all contribute to a single area of functionality in my
application. I would like to create a new class for my application which
rolls up these external classes into one class which my application can
consume.

I create a new class library and referenced my external classes. I built
the new class and added it to my application. I get an error that my
application is missing the old classes that I use to reference. Is there
some step I am missing in creating my rollup class.

Fred

Jul 21 '05 #2
check this (http://www.remotesoft.com/linker/) maybe is the solution.
"Fred Herring" <Fr*********@discussions.microsoft.com> escribió en el
mensaje news:BA**********************************@microsof t.com...
I work in vb.net and utilize some functionality which is based upon some
external classes which I currently reference in my application. These
external classes all contribute to a single area of functionality in my
application. I would like to create a new class for my application which
rolls up these external classes into one class which my application can
consume.

I create a new class library and referenced my external classes. I built
the new class and added it to my application. I get an error that my
application is missing the old classes that I use to reference. Is there some step I am missing in creating my rollup class.

Fred

Jul 21 '05 #3

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

Similar topics

0
by: Duncan Mole | last post by:
Hi, I have created a control which draws a title bar and provides a drop down menu for a Smart Device Application. It seemed to work fine until I came to add an event handler to act on Paint...
11
by: Simon | last post by:
Hi all As I'm sure is common knowledge the version of IIS included in XP Pro is limited in that you can only create 1 website in the IIS snap in. As an ASP.net developer this is a pain in the...
2
by: Craig Douthitt via DotNetMonster.com | last post by:
I am trying to capture an buttonclick on a usercontrol in the webform the usercontrol resides in. After researching this issue, I've come to believe that the best way of handling this is by raising...
2
by: Fred Herring | last post by:
I work in vb.net and utilize some functionality which is based upon some external classes which I currently reference in my application. These external classes all contribute to a single area of...
3
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
6
by: kbs | last post by:
Hi, I'm looking for some good examples that illustrate how to code a web service that exposes a custom collection so that the properties of the collection are accessible on the client without...
3
by: Jeremy Chapman | last post by:
I've writtin a very simple web service in axis which returns an array of classes. I consume it in a .net app. When receiving the response, my .net app generates an error "Cannot assign object...
1
by: =?Utf-8?B?TG9uZyBOZ3V5ZW4=?= | last post by:
Hi, I've developed a web service and a test application. From the test application, I was able to call the web service successfully. However, when I tried to call it from a class library, I...
1
by: Thomas Mueller | last post by:
Hi, I'm currently working on C# code consuming a PHP-webservice (soapserver-class of PHP5). A PHP test-client worked fine and achieved the requested data from the service's server. Using the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.