Hello Everyone,
I'm totally lost and I hope someone can help me out or point me to
something that can. Here's the deal:
I have an application that will implement a 'plugin' archetecture of
sorts. The application requires the user to fill out various forms.
Each agency that we deploy the application to will have different
forms and those forms will change over time. If we build each form
into the application through hard code, changing, adding, or removing
forms requires that the entire application be recompiled and
reinstalled.
So what I'm doing is designing the forms as part of a class library.
So let's take filling out a log for example. I'll create a new class
library and then add three Windows forms to it. Let's call them
frmStep1, frmStep2, and frmStep3 (all which pass data amongst
themselves). I build my class library and let's say that is called
LogFormLib.dll. What I need to happen is that I can distribute this
dll to my users, have them drop it in a special directory and have my
application automatically pick it up and make it available via the
menu system. This way, new forms can be added by simply distributing
a new DLL that contains the code.
I know this sounds easy, and I'm sure it is somewhat, but I am totally
lost. How can I do this? Are there any tutorials?
Thanks!
Anthony 5 1050
Easyest way in my opinion would be that you define a generic interface for
the class in the by you descibed situatien if lots of changes might happen
and you do not want to redeploy , i guess a invocation and comunication
interface to your main app would be the way to go
If you have defined this interface you can invoke anny plugin dll that
contains this interface , so in basic the once defined invocation interface
can never change cause then you need to redeploy your app however everything
that is beyond the interface can be changed to anything you like
to help you get started investigate "reflection " techniques
HTH
Michel Posseth [MCP]
"Anthony P." <pa*******@gmai l.comschreef in bericht
news:bf******** *************** ***********@c65 g2000hsa.google groups.com...
Hello Everyone,
I'm totally lost and I hope someone can help me out or point me to
something that can. Here's the deal:
I have an application that will implement a 'plugin' archetecture of
sorts. The application requires the user to fill out various forms.
Each agency that we deploy the application to will have different
forms and those forms will change over time. If we build each form
into the application through hard code, changing, adding, or removing
forms requires that the entire application be recompiled and
reinstalled.
So what I'm doing is designing the forms as part of a class library.
So let's take filling out a log for example. I'll create a new class
library and then add three Windows forms to it. Let's call them
frmStep1, frmStep2, and frmStep3 (all which pass data amongst
themselves). I build my class library and let's say that is called
LogFormLib.dll. What I need to happen is that I can distribute this
dll to my users, have them drop it in a special directory and have my
application automatically pick it up and make it available via the
menu system. This way, new forms can be added by simply distributing
a new DLL that contains the code.
I know this sounds easy, and I'm sure it is somewhat, but I am totally
lost. How can I do this? Are there any tutorials?
Thanks!
Anthony
Thank you Michael. This seems a bit complex but exactly what I need!
So, I know how I'm going to spend my Sunday! lol
Thanks Again,
Anthony
Michael,
I thought everything was going to be fine but I'm already confused so
let me ask a few pointed questions if you don't mind. I think if I get
these answered, I will be well on my way to properly using reflections
and building my plugin archetcture:
1. Do I define my interface in a seperate class file that will be
included in my main applications project?
2. What kinds of informatition do I need to put in my interface class?
For example:
Any given plugin will contain a bunch of Windows Forms that will
interact with each other AND the main application that loads them. So
let's say I have a menu item that loads form1 from an external dll
file. Form1 will have multiple controls on it that will take data from
the user and then call from2 (also contained in this external dll).
The only cavaet is that each plug-in will need to access variables
definied in the main application as Friends.
3. If I understand this correctly, I will basically be doing three
things:
1. Creating my main application.
2. Creating a SEPERATE class library that defines an interface
(this dll will be distributed with my main app)
3. Create seperate plugins that implement that interface.
I suppose I am maybe getting a small understanding of how this is
going to work but I still need a small bit of directlion.
Thanks in Advance
Anthony
Anthony P. wrote:
Hello Everyone,
I'm totally lost and I hope someone can help me out or point me to
something that can. Here's the deal:
I have an application that will implement a 'plugin' archetecture of
sorts. The application requires the user to fill out various forms.
Each agency that we deploy the application to will have different
forms and those forms will change over time. If we build each form
into the application through hard code, changing, adding, or removing
forms requires that the entire application be recompiled and
reinstalled.
So what I'm doing is designing the forms as part of a class library.
So let's take filling out a log for example. I'll create a new class
library and then add three Windows forms to it. Let's call them
frmStep1, frmStep2, and frmStep3 (all which pass data amongst
themselves). I build my class library and let's say that is called
LogFormLib.dll. What I need to happen is that I can distribute this
dll to my users, have them drop it in a special directory and have my
application automatically pick it up and make it available via the
menu system. This way, new forms can be added by simply distributing
a new DLL that contains the code.
I know this sounds easy, and I'm sure it is somewhat, but I am totally
lost. How can I do this? Are there any tutorials?
Thanks!
Anthony
It occurs to me that you might think of this application the other way around.
If you build the "main" application as a dll, then you can build a series of
custom executable apps that use that dll. All the main processing, and perhaps
the main form, would be in the dll. Each custom app would use the dll, and
include the specialized forms and processes it needs.
I think that approach might make the whole thing easier to organize and
implement, than trying to do a plug-in architecture. http://www.google.com/search?hl=fr&q...rlz=1W1GPRE_fr
"Anthony P." <pa*******@gmai l.comwrote in message
news:bf******** *************** ***********@c65 g2000hsa.google groups.com...
Hello Everyone,
I'm totally lost and I hope someone can help me out or point me to
something that can. Here's the deal:
I have an application that will implement a 'plugin' archetecture of
sorts. The application requires the user to fill out various forms.
Each agency that we deploy the application to will have different
forms and those forms will change over time. If we build each form
into the application through hard code, changing, adding, or removing
forms requires that the entire application be recompiled and
reinstalled.
So what I'm doing is designing the forms as part of a class library.
So let's take filling out a log for example. I'll create a new class
library and then add three Windows forms to it. Let's call them
frmStep1, frmStep2, and frmStep3 (all which pass data amongst
themselves). I build my class library and let's say that is called
LogFormLib.dll. What I need to happen is that I can distribute this
dll to my users, have them drop it in a special directory and have my
application automatically pick it up and make it available via the
menu system. This way, new forms can be added by simply distributing
a new DLL that contains the code.
I know this sounds easy, and I'm sure it is somewhat, but I am totally
lost. How can I do this? Are there any tutorials?
Thanks!
Anthony This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dale cyr |
last post by:
nick:
hope i'm not stating the obvious for you,
but you *are* aware, i presume, that your loading app
wants to find the loaded app in the loading app's runtime
directory, or a sub directory of the loading apps runtime
directory...
(i recently changed the build path of a "loaded at
runtime" dll and chased this very symptom for a few days.)
|
by: annoyingmouse2002 |
last post by:
Hi there,
sorry if this a long post but I'm really just starting out. I've been
using MSXML to parse an OWL but would like to use a different
solution. Basically it reads the OWL (Based on XML) and puts values in
a number of arrays and then puts the contents of the array in a HTML
table. I'd like to keep the array structure. I've checked out all
sorts of different javascript parsers but have not met with a great
deal of success with any...
|
by: Angelos Karantzalis |
last post by:
Hi guys,
I'm trying to load a class instance dynamically, and then cast it to it's
base type so I can use it in my app.
More specifically, I'm dynamically instantiating a
System.Web.UI.WebControls.RequiredFieldValidator and attempting to cast it
into an IValidator and/or a BaseValidator. Both casting attempts have
failed miserably, throwing an InvalidCastException ... how can it be i
cannot cast to the base class of my instance ???
|
by: Foehammer |
last post by:
Hello,
I'm trying to load an assembly dynamically using an app domain. This
is a proof-of-concept for a larger project, so please excuse the lame
class names.
TestLib is the dll where all the dynamic loading code will go. The
assemblies being dynamically loaded do not contain any code. They are
resource-only assemblies. I have succeeded in dynamically loading them
within the same AppDomain as the main application (a Winforms EXE that...
|
by: Generic Usenet Account |
last post by:
To settle the dispute regarding what happens when an "erase" method is
invoked on an STL container (i.e. whether the element is merely
removed from the container or whether it also gets deleted in the
process), I looked up the STL code. Erase certainly does not delete
the memory associated with the element. However, it appears that the
destructor on the element is invoked. I wonder why it has to be this
way. In my opinion, this renders...
| |
by: Shaun C Farrugia |
last post by:
I have a multi team solution being built where teams are segmented off
into seperate projects. One project is an over all framework containing
a Broker class responsible
for instantiating different subclasses of type Connector - the class only contains the abstract Connector
class and the Broker.
A seperate project contains the actual subclasses of the Connector that
are database specific. Another team will work exclusivley in that...
|
by: Ender |
last post by:
I have an application that I would like third party developers to be
able to create Plug-ins that will be dynamically loaded into our
application to extend functionality.
I have utilized the "Let Users Add Functionality to Your .NET
Applications with Macros and Plug-Ins" article at MSDN for the dynamic
loading of DLLs
http://msdn.microsoft.com/msdnmag/issues/03/10/Plug-Ins/default.aspx
|
by: Eric |
last post by:
I'm trying to dynamically load a user control using on the .NET
framework (not Visual Studio).
The control was designed in Visual Studio and is named: Disable.ascx
The first line is:
<%@ Control Language="c#" className="Disable1" src="Disable.ascx.cs" %>
The host page for this control is named UserControl.aspx.
The first 2 lines are:
<%@ Reference control="Disable.ascx" %>
|
by: Andy |
last post by:
I want to dynamically update a list of elements shown as a checkbox
list. A file is used to store the elements, and elements can be added
and deleted from the list. The trouble is that the window is not
properly updated after deleting/adding items.
I use the Detach()/Destroy() to remove the sizer, and then I create a
new and updated sizer again. Apparently, not in a correct way...
#################File...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |