473,398 Members | 2,165 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,398 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 1231
"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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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.