Click here to Skip to main content
16,005,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple instance of com object Pin
ayol1212216-Oct-06 6:56
ayol1212216-Oct-06 6:56 
QuestionPolymorphic classes Pin
Waldermort15-Oct-06 6:31
Waldermort15-Oct-06 6:31 
AnswerRe: Polymorphic classes Pin
Gary R. Wheeler15-Oct-06 6:44
Gary R. Wheeler15-Oct-06 6:44 
GeneralRe: Polymorphic classes Pin
Waldermort15-Oct-06 14:21
Waldermort15-Oct-06 14:21 
AnswerRe: Polymorphic classes Pin
Jörgen Sigvardsson15-Oct-06 8:45
Jörgen Sigvardsson15-Oct-06 8:45 
QuestionMFC ActiveX built with /CLR fails to load Pin
DnKostya15-Oct-06 5:50
DnKostya15-Oct-06 5:50 
AnswerRe: MFC ActiveX built with /CLR fails to load Pin
sps-itsec4615-Dec-06 2:05
sps-itsec4615-Dec-06 2:05 
QuestionHow to Separate Interface and concrete class to 2 DLLs in C++ Pin
Julia115-Oct-06 4:02
Julia115-Oct-06 4:02 
In my solution I would like to have 3 projects in C++ and the following architecture:

1. Interface.
It is a DLL that has only interfaces with pure virtual functions.
Some of those interfaces should also be singletones (I need to ensure that the concrete class will be singletone).

2. Implementation.
It is another DLL that implements concrete classes for those interface classes defined in Interface DLL. The Implementation DLL will load the Interface DLL.

3. TestDriver.
This is an EXE application that will know only about Interface DLL/LIB and will NOT LOAD the Implementation DLL. It will use the Interface like this:
Interface *my = InterfaceDLLClass.GetInstance();
The GetInstance will return an object of concrete class.
In such a way I will be able to change Implementation DLL in the future without changing Interface DLL and TestDriver EXE.

Is it possible to implement such an architecture in C++?
Can you give me some advise/link?
As I understood, in Java/C# it is possible, but I need C++.

Thanks in advance.
AnswerRe: How to Separate Interface and concrete class to 2 DLLs in C++ Pin
Gary R. Wheeler15-Oct-06 6:38
Gary R. Wheeler15-Oct-06 6:38 
QuestionRe: How to Separate Interface and concrete class to 2 DLLs in C++ Pin
Julia116-Oct-06 3:19
Julia116-Oct-06 3:19 
AnswerRe: How to Separate Interface and concrete class to 2 DLLs in C++ Pin
Gary R. Wheeler16-Oct-06 13:02
Gary R. Wheeler16-Oct-06 13:02 
QuestionHow do you use combo boxes with a Doc View SDI Application Pin
D_code_writer15-Oct-06 3:10
D_code_writer15-Oct-06 3:10 
AnswerRe: How do you use combo boxes with a Doc View SDI Application Pin
cje16-Oct-06 4:37
cje16-Oct-06 4:37 
AnswerRe: How do you use combo boxes with a Doc View SDI Application Pin
Mark Salsbery16-Oct-06 7:32
Mark Salsbery16-Oct-06 7:32 
AnswerRe: How do you use combo boxes with a Doc View SDI Application Pin
D_code_writer16-Oct-06 21:54
D_code_writer16-Oct-06 21:54 
GeneralRe: How do you use combo boxes with a Doc View SDI Application Pin
Mark Salsbery17-Oct-06 6:13
Mark Salsbery17-Oct-06 6:13 
QuestionHow to use "Connection: Keep-Alive" header Pin
zzattack15-Oct-06 2:12
zzattack15-Oct-06 2:12 
AnswerRe: How to use "Connection: Keep-Alive" header Pin
Michael Dunn15-Oct-06 9:03
sitebuilderMichael Dunn15-Oct-06 9:03 
GeneralRe: How to use "Connection: Keep-Alive" header Pin
zzattack15-Oct-06 9:59
zzattack15-Oct-06 9:59 
QuestionHow to set the cursor on an EditBox? Pin
sir_moreno15-Oct-06 1:16
sir_moreno15-Oct-06 1:16 
AnswerRe: How to set the cursor on an EditBox? Pin
Mark Salsbery15-Oct-06 8:10
Mark Salsbery15-Oct-06 8:10 
Questionan existing efficient matrix multiplication algorithm? Pin
George_George15-Oct-06 1:10
George_George15-Oct-06 1:10 
QuestionLinking with Visual Studio 2003 ??? Pin
thedp15-Oct-06 0:31
thedp15-Oct-06 0:31 
AnswerRe: Linking with Visual Studio 2003 ??? Pin
Christian Graus15-Oct-06 0:48
protectorChristian Graus15-Oct-06 0:48 
GeneralRe: Linking with Visual Studio 2003 ??? Pin
thedp15-Oct-06 0:57
thedp15-Oct-06 0:57 

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.