Click here to Skip to main content
15,843,727 members
Home / Discussions / C#
   

C#

 
GeneralRe: Create An "add-in-able" Application Pin
MStanbrook2-Oct-02 8:58
MStanbrook2-Oct-02 8:58 
GeneralRe: Create An "add-in-able" Application Pin
David Stone2-Oct-02 9:29
sitebuilderDavid Stone2-Oct-02 9:29 
GeneralRe: Create An "add-in-able" Application Pin
ez22-Oct-02 10:29
ez22-Oct-02 10:29 
GeneralFreeze. This is the Clickety Police! Pin
David Stone2-Oct-02 13:42
sitebuilderDavid Stone2-Oct-02 13:42 
GeneralRe: Create An "add-in-able" Application Pin
Stephane Rodriguez.2-Oct-02 10:48
Stephane Rodriguez.2-Oct-02 10:48 
GeneralRe: Create An "add-in-able" Application Pin
MStanbrook2-Oct-02 19:19
MStanbrook2-Oct-02 19:19 
GeneralRe: Create An "add-in-able" Application Pin
leppie3-Oct-02 4:06
leppie3-Oct-02 4:06 
GeneralRe: Create An "add-in-able" Application Pin
Eric Gunnerson (msft)2-Oct-02 12:33
Eric Gunnerson (msft)2-Oct-02 12: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 19:15
MStanbrook2-Oct-02 19:15 
QuestionHow do you know you're in design mode vs. running? Pin
Zombies with Coffee, LLC2-Oct-02 5:59
professionalZombies with Coffee, LLC2-Oct-02 5:59 
AnswerRe: How do you know you're in design mode vs. running? Pin
Paul Riley2-Oct-02 6:22
Paul Riley2-Oct-02 6:22 
GeneralRe: How do you know you're in design mode vs. running? Pin
Zombies with Coffee, LLC2-Oct-02 6:30
professionalZombies with Coffee, LLC2-Oct-02 6:30 
GeneralMicrosoft Exchange programming Pin
Ola Carlsson2-Oct-02 4:43
Ola Carlsson2-Oct-02 4:43 
GeneralRe: Microsoft Exchange programming Pin
Michael P Butler2-Oct-02 5:00
Michael P Butler2-Oct-02 5:00 
GeneralRe: Microsoft Exchange programming Pin
Stephane Rodriguez.2-Oct-02 5:18
Stephane Rodriguez.2-Oct-02 5:18 
GeneralCalling COM Object in C# Pin
RAVI H R1-Oct-02 21:06
RAVI H R1-Oct-02 21:06 
GeneralRe: Calling COM Object in C# Pin
Stephane Rodriguez.1-Oct-02 21:44
Stephane Rodriguez.1-Oct-02 21:44 
GeneralRe: Calling COM Object in C# Pin
RAVI H R2-Oct-02 0:05
RAVI H R2-Oct-02 0:05 
GeneralRe: Calling COM Object in C# Pin
Stephane Rodriguez.2-Oct-02 0:41
Stephane Rodriguez.2-Oct-02 0:41 
GeneralRe: Calling COM Object in C# Pin
RAVI H R2-Oct-02 1:29
RAVI H R2-Oct-02 1:29 
GeneralHelp reading a binary file Pin
David Williams1-Oct-02 14:36
David Williams1-Oct-02 14:36 
GeneralRe: Help reading a binary file Pin
leppie1-Oct-02 15:35
leppie1-Oct-02 15:35 
GeneralRe: Help reading a binary file Pin
David Williams2-Oct-02 8:06
David Williams2-Oct-02 8:06 
GeneralRe: Help reading a binary file Pin
leppie2-Oct-02 10:30
leppie2-Oct-02 10:30 
GeneralRe: Help reading a binary file Pin
30-Oct-02 9:45
suss30-Oct-02 9: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.