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

Working as a real plugin ?

Dear all,

I have a main VB.NET application which must be self
configurable depending of the presence on the system of
particular assembly.

For example if I have on my system a library named
myLib.dll, I would like that this library sends all its
information to the main application.

Which means that I I need to developp later on a new
library and that I just distribute that library to be
copied in a specific place, my main application should
notify the presence of tha new library.

IN other words I would like to handle the developement of
my libraries as a real plug in.

What should I do in my library side and in my application
side in order that this behavioue works. Similar way as
explorer is doing ?

Any guide lines or sample will be really appreciate

Thanks for your help
Regards
Serge

Nov 22 '05 #1
2 1230
"Serge calderara" <se*************@maillefer.net> wrote in
news:00****************************@phx.gbl:
Dear all,

I have a main VB.NET application which must be self
configurable depending of the presence on the system of
particular assembly.

For example if I have on my system a library named
myLib.dll, I would like that this library sends all its
information to the main application.

Which means that I I need to developp later on a new
library and that I just distribute that library to be
copied in a specific place, my main application should
notify the presence of tha new library.

IN other words I would like to handle the developement of
my libraries as a real plug in.

What should I do in my library side and in my application
side in order that this behavioue works. Similar way as
explorer is doing ?

Any guide lines or sample will be really appreciate

Thanks for your help
Regards
Serge


So first of all you need to know when a file is added to a particular
folder... use the FileSystemWatcher class.

Second you need to load that assembly dynamically and see that it
implements certain interfaces/features that you define... use the
reflection namespace, specifically the Assembly class. You can create
instances of types from an assembly once you load it.

here are some helpful articles on desinging a plug-in-able application...

http://msdn.microsoft.com/msdnmag/is...s/default.aspx

http://www.fawcette.com/vsm/2003_11/...ettingstarted/

Michael Lang, MCSD
Nov 22 '05 #2
"Serge calderara" <se*************@maillefer.net> wrote in
news:00****************************@phx.gbl:
Dear all,

I have a main VB.NET application which must be self
configurable depending of the presence on the system of
particular assembly.

For example if I have on my system a library named
myLib.dll, I would like that this library sends all its
information to the main application.

Which means that I I need to developp later on a new
library and that I just distribute that library to be
copied in a specific place, my main application should
notify the presence of tha new library.

IN other words I would like to handle the developement of
my libraries as a real plug in.

What should I do in my library side and in my application
side in order that this behavioue works. Similar way as
explorer is doing ?

Any guide lines or sample will be really appreciate

Thanks for your help
Regards
Serge


So first of all you need to know when a file is added to a particular
folder... use the FileSystemWatcher class.

Second you need to load that assembly dynamically and see that it
implements certain interfaces/features that you define... use the
reflection namespace, specifically the Assembly class. You can create
instances of types from an assembly once you load it.

here are some helpful articles on desinging a plug-in-able application...

http://msdn.microsoft.com/msdnmag/is...s/default.aspx

http://www.fawcette.com/vsm/2003_11/...ettingstarted/

Michael Lang, MCSD
Nov 22 '05 #3

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

Similar topics

1
by: Serge calderara | last post by:
Dear all, I have a main VB.NET application which must be self configurable depending of the presence on the system of particular assembly. For example if I have on my system a library named...
4
by: Dag Sunde | last post by:
I've been working on a system that have been running for the last couple of years, but stopped working on my dev. machine after reinstalling WinXP yesterday. To my knowledge, it have been set up...
4
by: qbproger | last post by:
I'm developing a plugin for some software. The previous version of the software didn't require a start in directory to be set. This allowed me to leave the working directory to the default in the...
0
by: Dan Dorey | last post by:
I'm in the midst of creating a plugin framework with the goal of making it as easy as possible for myself and other developers to both create new plugins and work with existing ones. Each plugin...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
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,...

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.