473,804 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Plug-In Architecture

Hi,
Before asking my doubt, first I want to tell you about my application
structure. I want to design a Client Desktop program, which has an MDI form.
This MDi Form has one Horizontal Toolbar. Button of Toolbar get added
whenever it find Plug-in dlls in "Plug-In" directory. Now this Plug in dll
is nothing but form (child form of MDI form).
I want your help to sort this problem. i.e When MDi form create instance of
dll(form.dll) that form should me child of MDI application.
I want this type of architecture to simplify next development of
application.

Thank You in Advance
Tushar P.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.740 / Virus Database: 494 - Release Date: 16-Aug-04
Nov 16 '05 #1
1 2047
Hi Rakesh,
I done one program based on sohki's plugin architecture(Fr om CodeProject).
In that Instance of UserControls created in Panel control of Host
application. Using this architectue I design Plugin interface for Form
control. Now I have problem of how to Instantiate Form Dll into Host
application. I cann't instantiate it in Panel control coz it is low level
control.
If know any idea please infom me.

Thank You
Tushar

"Rakesh Rajan" <Ra*********@di scussions.micro soft.com> wrote in message
news:0D******** *************** ***********@mic rosoft.com...
This design might do:

You define an interface to specify what all members the dynamically
pluggable components should implement.

At runtime, you iterate thru all the types that exists in a specified
folder, and find out whether types derived from this interface exists or not. Or, you could also use the app.config file to specify which all types are the pluggable ones.

Once the type is identified, you could create an instance of that type using reflection and refer that using a Form ref or so, and then set the Mdi
properties as required. You could work with this instance in the same way as you with with normal type instances.

There are a number of articles on the same in MSDN Mag, codeproject etc.

eg:
http://www.codeproject.com/csharp/plugins.asp

HTH,
Rakesh

"TusharP" wrote:
Hi,
Before asking my doubt, first I want to tell you about my application
structure. I want to design a Client Desktop program, which has an MDI form. This MDi Form has one Horizontal Toolbar. Button of Toolbar get added
whenever it find Plug-in dlls in "Plug-In" directory. Now this Plug in dll is nothing but form (child form of MDI form).
I want your help to sort this problem. i.e When MDi form create instance of dll(form.dll) that form should me child of MDI application.
I want this type of architecture to simplify next development of
application.

Thank You in Advance
Tushar P.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.740 / Virus Database: 494 - Release Date: 16-Aug-04

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.740 / Virus Database: 494 - Release Date: 16-Aug-04
Nov 16 '05 #2

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

Similar topics

9
2460
by: Tian | last post by:
I am writing an audio game using Python. in this game you can apply some sound effects for the clips you have recorded. I want to make this function extensible. I want user to be able to add new sound effect plug-ins in the future. I want the plug-in to be a simple python code (text file) and a description file. I will set some rules for plug-in writing (like you must inherit some class and implement some method). I hope plugin can be...
2
1423
by: Jesper | last post by:
Im creating a host application (a game) which allows for users to supply a custom computer AI. This will be in the form of a plugin assembly which supports a specified interface. So the host will call interface functions in the plugins like PerformMove(GameState gs). The host application is a trusted application that runs on a server, and users upload plugins to this server, but I can't trust the plugins. PlugIn: - Must adhere to a...
1
1705
by: gnuoytr | last post by:
being a retrograde vi kind of guy, i can run a vi-able editor when i use WSAD or Eclipse (both java programs), but i don't see any plug-in menu items here. any chance of getting plug-in support into Dev Center?? LUW/v8.1 (not 8.2, yet) btw, the cygwin/gcc hack works. did that yesterday. cool. now, if only gcc worked on z/os <G>
2
2048
by: Kelvin | last post by:
To all, I've got another question. Does anybody know how to write plug-ins using VC++?? Actually, my friends and I will develop a Photo enhancing system, and so we'll need some technique to allow additional packages/plugins to attach the system. (maybe need to integrate commercial plugins such as KPT6-- photoshop)
4
2242
by: Brad Markisohn | last post by:
Is there a way to determine, programmatically, when Plug-and-Play devices are connected or removed from the PC? In VB 6 I caught events from the SysInfo control, but I don't believe that this control is supported in .Net. Any suggestion? TIA Brad
0
9711
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, 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...
0
9591
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10594
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
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 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...
1
10331
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,...
0
9166
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, 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...
0
6861
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3001
bsmnconsultancy
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...

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.