Click here to Skip to main content
15,916,180 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionConverting a IntPtr to HWND ? Pin
Fritzables20-Dec-06 17:08
Fritzables20-Dec-06 17:08 
AnswerRe: Converting a IntPtr to HWND ? Pin
User 58385220-Dec-06 18:38
User 58385220-Dec-06 18:38 
GeneralRe: Converting a IntPtr to HWND ? Pin
Fritzables21-Dec-06 10:41
Fritzables21-Dec-06 10:41 
QuestionPassing Reference to Thread Delegate Pin
ricecake20-Dec-06 8:54
ricecake20-Dec-06 8:54 
QuestionDispatching based on Names Pin
ComplexLifeForm19-Dec-06 21:33
ComplexLifeForm19-Dec-06 21:33 
AnswerRe: Dispatching based on Names Pin
bsaksida19-Dec-06 22:16
bsaksida19-Dec-06 22:16 
GeneralRe: Dispatching based on Names Pin
ComplexLifeForm20-Dec-06 0:15
ComplexLifeForm20-Dec-06 0:15 
AnswerRe: Dispatching based on Names Pin
led mike20-Dec-06 4:46
led mike20-Dec-06 4:46 
It sounds like you are asking about a "plug-in" implementation.

psychedelic_fur wrote:
the correct method will be invoked.


Well that approach would be similar to the old C function pointer technique. OO concepts introduced "interfaces" which are preferable from a design standpoint. It is also referred to as Design by Contract[^]

Anyway a simplified version of this for a "plug in" implementation could go like this:

Design one or more interfaces (see Design by Contract). Each plug-in (class) will implement one or more of these interfaces. Along with the interfaces you design a "configuration" scheme for giving the application the required information about new classes that have been installed. Then you can leverage the System.Reflection classes to dynamically instantiate an object from it's text name (basically). Using this approach you can add new classes to an application by installing a new assembly and adding the requisite information to the applications configuration file.


led mike

QuestionReading & Writing Config Files Pin
mactick19-Dec-06 20:36
mactick19-Dec-06 20:36 
AnswerRe: Reading & Writing Config Files Pin
bsaksida19-Dec-06 22:21
bsaksida19-Dec-06 22:21 
QuestionRe: Reading & Writing Config Files Pin
mactick19-Dec-06 23:22
mactick19-Dec-06 23:22 
AnswerRe: Reading & Writing Config Files Pin
bsaksida19-Dec-06 23:29
bsaksida19-Dec-06 23:29 
QuestionRe: Reading & Writing Config Files Pin
mactick19-Dec-06 23:34
mactick19-Dec-06 23:34 
AnswerRe: Reading & Writing Config Files Pin
bsaksida20-Dec-06 0:24
bsaksida20-Dec-06 0:24 
AnswerRe: Reading & Writing Config Files Pin
led mike20-Dec-06 4:33
led mike20-Dec-06 4:33 
QuestionHi!!! Pin
alijon19-Dec-06 18:39
alijon19-Dec-06 18:39 
AnswerRe: Hi!!! Pin
kristmun19-Dec-06 20:07
kristmun19-Dec-06 20:07 
AnswerRe: Hi!!! Pin
Mark Salsbery20-Dec-06 12:41
Mark Salsbery20-Dec-06 12:41 
QuestionCan a class object in Dialog based application serialized? Pin
Sunil Jampa19-Dec-06 15:54
Sunil Jampa19-Dec-06 15:54 
GeneralRe: Can a class object in Dialog based application serialized? Pin
prasad_som19-Dec-06 20:44
prasad_som19-Dec-06 20:44 
QuestionListView Headrs Pin
bsaksida19-Dec-06 10:23
bsaksida19-Dec-06 10:23 
AnswerRe: ListView Headrs Pin
User 58385219-Dec-06 12:04
User 58385219-Dec-06 12:04 
GeneralRe: ListView Headrs Pin
bsaksida19-Dec-06 12:14
bsaksida19-Dec-06 12:14 
GeneralRe: ListView Headrs Pin
User 58385219-Dec-06 12:20
User 58385219-Dec-06 12:20 
GeneralRe: ListView Headrs Pin
bsaksida19-Dec-06 12:29
bsaksida19-Dec-06 12:29 

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.