Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTrying to create a Popup Window Pin
BobInNJ18-Feb-09 5:05
BobInNJ18-Feb-09 5:05 
AnswerRe: Trying to create a Popup Window Pin
prasad_som18-Feb-09 6:26
prasad_som18-Feb-09 6:26 
AnswerRe: Trying to create a Popup Window Pin
Iain Clarke, Warrior Programmer19-Feb-09 0:20
Iain Clarke, Warrior Programmer19-Feb-09 0:20 
QuestionModifying the window list and/or Ctrl+Tab behaviour in an MDI app Pin
Paul Vickery18-Feb-09 4:28
professionalPaul Vickery18-Feb-09 4:28 
AnswerRe: Modifying the window list and/or Ctrl+Tab behaviour in an MDI app Pin
led mike18-Feb-09 4:40
led mike18-Feb-09 4:40 
Questionmultiple dll Pin
pedefetoll18-Feb-09 3:08
pedefetoll18-Feb-09 3:08 
AnswerRe: multiple dll Pin
CPallini18-Feb-09 3:17
mveCPallini18-Feb-09 3:17 
AnswerRe: multiple dll Pin
Iain Clarke, Warrior Programmer18-Feb-09 3:51
Iain Clarke, Warrior Programmer18-Feb-09 3:51 
marcelcerdanjunior wrote:
Can you give me a simple workspace sample, with the differents projects (.dsp) (Application, peripheral 1, peripheral 2), showing the architecture , definition and inter-dependencies between the differents classes.


Do I have to provide the spoon too?

More seriously, I do exactly what you're talking about - I have plugin DLLs which manage different motion control architectures through a common interface. I don't actually use COM for this, as I'm not that bothered about other people controlling my machines, but I do use their philosophy.

I have a pure virtual class, and the implementations inherit from this. So far, just like "interface" keyword.

I have a registry key with the name of the implementation DLL. I load that, and call a named function to export a pointer to a control object. That pointer is of the virtual base class type. All other parts of the software only know about that base class.

There are some good starter articles on COM on this site if you want further inspiration.

Good luck,

Iain.

Codeproject MVP for C++, I can't believe it's for my lounge posts...

GeneralRe: multiple dll Pin
led mike18-Feb-09 4:30
led mike18-Feb-09 4:30 
QuestionCComboBox Pin
durban218-Feb-09 2:32
durban218-Feb-09 2:32 
AnswerRe: CComboBox Pin
krmed18-Feb-09 2:45
krmed18-Feb-09 2:45 
AnswerRe: CComboBox Pin
_AnsHUMAN_ 18-Feb-09 2:46
_AnsHUMAN_ 18-Feb-09 2:46 
AnswerRe: CComboBox Pin
David Crow18-Feb-09 3:05
David Crow18-Feb-09 3:05 
QuestionPassing a string Pin
brucewayn18-Feb-09 2:31
brucewayn18-Feb-09 2:31 
AnswerRe: Passing a string Pin
Cedric Moonen18-Feb-09 2:38
Cedric Moonen18-Feb-09 2:38 
GeneralRe: Passing a string Pin
CPallini18-Feb-09 22:06
mveCPallini18-Feb-09 22:06 
GeneralRe: Passing a string Pin
Cedric Moonen18-Feb-09 22:49
Cedric Moonen18-Feb-09 22:49 
GeneralRe: Passing a string Pin
CPallini18-Feb-09 23:12
mveCPallini18-Feb-09 23:12 
AnswerRe: Passing a string Pin
eraccn18-Feb-09 3:00
eraccn18-Feb-09 3:00 
QuestionOnSize() function help Pin
Deepu Antony18-Feb-09 1:28
Deepu Antony18-Feb-09 1:28 
AnswerRe: OnSize() function help Pin
Arman S.18-Feb-09 1:52
Arman S.18-Feb-09 1:52 
GeneralRe: OnSize() function help Pin
Deepu Antony18-Feb-09 2:22
Deepu Antony18-Feb-09 2:22 
QuestionSetting for removing a file path from Liner->Command Line in VS2005 Pin
pandit8418-Feb-09 1:24
pandit8418-Feb-09 1:24 
QuestionThread Pin
Davitor18-Feb-09 1:15
Davitor18-Feb-09 1:15 
AnswerRe: Thread Pin
Chandrasekharan P18-Feb-09 1:22
Chandrasekharan P18-Feb-09 1:22 

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.