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

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 2026
Hi Rakesh,
I done one program based on sohki's plugin architecture(From 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*********@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.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
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...
2
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...
1
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...
2
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...
4
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...
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...

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.