Click here to Skip to main content
15,884,099 members
Home / Discussions / C#
   

C#

 
GeneralRe: Create An "add-in-able" Application Pin
MStanbrook2-Oct-02 7:58
MStanbrook2-Oct-02 7:58 
GeneralRe: Create An "add-in-able" Application Pin
David Stone2-Oct-02 8:29
sitebuilderDavid Stone2-Oct-02 8:29 
GeneralRe: Create An "add-in-able" Application Pin
ez22-Oct-02 9:29
ez22-Oct-02 9:29 
GeneralFreeze. This is the Clickety Police! Pin
David Stone2-Oct-02 12:42
sitebuilderDavid Stone2-Oct-02 12:42 
GeneralRe: Create An "add-in-able" Application Pin
Stephane Rodriguez.2-Oct-02 9:48
Stephane Rodriguez.2-Oct-02 9:48 
GeneralRe: Create An "add-in-able" Application Pin
MStanbrook2-Oct-02 18:19
MStanbrook2-Oct-02 18:19 
GeneralRe: Create An "add-in-able" Application Pin
leppie3-Oct-02 3:06
leppie3-Oct-02 3:06 
GeneralRe: Create An "add-in-able" Application Pin
Eric Gunnerson (msft)2-Oct-02 11:33
Eric Gunnerson (msft)2-Oct-02 11:33 
How difficult this is depends upon what your requirements are.

If you want to just load add-ins at runtime, it's quite simple.
1) Define the interface you want an add-in to implement, and compile it to a .dll
2) Create a directory for add-ins off of the directory where the .exe lives
3) In the main exe, use Assembly.Load() to load in the assembly4)
4) Use reflection to find the types in it that implement your assembly
5) Use activator.CreateInstance() to create the instance
6) Cast it to your interface, and then go to town.

If you want to be able to update them on the fly, that gets more complicated. Look at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp05162002.asp

for more information.


GeneralRe: Create An "add-in-able" Application Pin
MStanbrook2-Oct-02 18:15
MStanbrook2-Oct-02 18:15 
QuestionHow do you know you're in design mode vs. running? Pin
Zombies with Coffee, LLC2-Oct-02 4:59
professionalZombies with Coffee, LLC2-Oct-02 4:59 
AnswerRe: How do you know you're in design mode vs. running? Pin
Paul Riley2-Oct-02 5:22
Paul Riley2-Oct-02 5:22 
GeneralRe: How do you know you're in design mode vs. running? Pin
Zombies with Coffee, LLC2-Oct-02 5:30
professionalZombies with Coffee, LLC2-Oct-02 5:30 
GeneralMicrosoft Exchange programming Pin
Ola Carlsson2-Oct-02 3:43
Ola Carlsson2-Oct-02 3:43 
GeneralRe: Microsoft Exchange programming Pin
Michael P Butler2-Oct-02 4:00
Michael P Butler2-Oct-02 4:00 
GeneralRe: Microsoft Exchange programming Pin
Stephane Rodriguez.2-Oct-02 4:18
Stephane Rodriguez.2-Oct-02 4:18 
GeneralCalling COM Object in C# Pin
RAVI H R1-Oct-02 20:06
RAVI H R1-Oct-02 20:06 
GeneralRe: Calling COM Object in C# Pin
Stephane Rodriguez.1-Oct-02 20:44
Stephane Rodriguez.1-Oct-02 20:44 
GeneralRe: Calling COM Object in C# Pin
RAVI H R1-Oct-02 23:05
RAVI H R1-Oct-02 23:05 
GeneralRe: Calling COM Object in C# Pin
Stephane Rodriguez.1-Oct-02 23:41
Stephane Rodriguez.1-Oct-02 23:41 
GeneralRe: Calling COM Object in C# Pin
RAVI H R2-Oct-02 0:29
RAVI H R2-Oct-02 0:29 
GeneralHelp reading a binary file Pin
David Williams1-Oct-02 13:36
David Williams1-Oct-02 13:36 
GeneralRe: Help reading a binary file Pin
leppie1-Oct-02 14:35
leppie1-Oct-02 14:35 
GeneralRe: Help reading a binary file Pin
David Williams2-Oct-02 7:06
David Williams2-Oct-02 7:06 
GeneralRe: Help reading a binary file Pin
leppie2-Oct-02 9:30
leppie2-Oct-02 9:30 
GeneralRe: Help reading a binary file Pin
30-Oct-02 8:45
suss30-Oct-02 8:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.