473,324 Members | 2,268 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,324 software developers and data experts.

ComponentCategroy .NET equivalent?

Hi All -

So I now have my C# app out in user land, thanks to the many replies on this
thread! Anyway, I'd like to come up with a "Plugin" type of mechanism for
it, whereby the app looks in it's directory for any dlls it doesn't know
about (know how to do that part) and then (the part I don't know how to do)

1) loads the assemblies it does not recognize
2) finds classes in the assembly implementing interface IMyAppPlugin
3) instantiates instances of those classes

Can anyone point me at some example code to do the above?

Thanks in advance!

Derrick
Nov 16 '05 #1
1 1017

"Derrick" <de*********@excite.com> wrote in message
news:Os**************@TK2MSFTNGP15.phx.gbl...
Hi All -

Out of curiosity, what is ComponentCategory?
As a tip, don't ask for an equivilent of something without providing
informatino about what you are talking about. Not everyone is going to know
what you are refering to offhand.
So I now have my C# app out in user land, thanks to the many replies on
this
thread! Anyway, I'd like to come up with a "Plugin" type of mechanism for
it, whereby the app looks in it's directory for any dlls it doesn't know
about (know how to do that part) and then (the part I don't know how to
do)

1) loads the assemblies it does not recognize
2) finds classes in the assembly implementing interface IMyAppPlugin
3) instantiates instances of those classes

Can anyone point me at some example code to do the above?


This is a fair example:
http://www.codeproject.com/csharp/PluginsInCSharp.asp
Nov 16 '05 #2

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

Similar topics

14
by: John | last post by:
Is there an equivalent of COM on Linux that I can get through Python. My need is to have some sort of language independent component framework. I can think of CORBA but I have to have a server...
7
by: Tim Conner | last post by:
Hi, I am an ex-delphi programmer, and I having a real hard time with the following simple code (example ): Which is the equivalent to the following code ? var chars : PChar; sBack, s :...
10
by: karch | last post by:
How would this C# contruct be represented in C++/CLI? Or is it even possible? PolicyLevel level = (enumerator->Current) as PolicyLevel; Thanks, Karch
9
by: Alan Silver | last post by:
Hello, I'm converting some old VB6 code to use with ASP.NET and have come unstuck with the Asc() function. This was used in the old VB6 code to convert a character to its ASCII numeric...
14
by: grid | last post by:
Hi, I have a certain situation where a particular piece of code works on a particular compiler but fails on another proprietary compiler.It seems to have been fixed but I just want to confirm if...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.