Click here to Skip to main content
15,884,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Difference between C++ Structures and C++ Classes Pin
Amar Sutar8-Aug-06 2:57
Amar Sutar8-Aug-06 2:57 
AnswerRe: Difference between C++ Structures and C++ Classes Pin
David Crow8-Aug-06 2:57
David Crow8-Aug-06 2:57 
AnswerRe: Difference between C++ Structures and C++ Classes Pin
Viorel.8-Aug-06 2:59
Viorel.8-Aug-06 2:59 
AnswerRe: Difference between C++ Structures and C++ Classes Pin
Hamid_RT8-Aug-06 3:46
Hamid_RT8-Aug-06 3:46 
AnswerRe: Difference between C++ Structures and C++ Classes Pin
Zac Howland8-Aug-06 5:28
Zac Howland8-Aug-06 5:28 
QuestionTemplate argument dependent compilation Pin
tuxyboy8-Aug-06 2:11
tuxyboy8-Aug-06 2:11 
AnswerRe: Template argument dependent compilation Pin
Chris Losinger8-Aug-06 2:36
professionalChris Losinger8-Aug-06 2:36 
AnswerRe: Template argument dependent compilation Pin
Viorel.8-Aug-06 2:48
Viorel.8-Aug-06 2:48 
Maybe you should try a "specialization" of template classes? I suppose it may look like this:

template< class BASE >
class COMMON : public BASE
{
    // common members for CDialog and CFormView base
    . . .
};

template< class BASE >
class CLASS : public COMMON< BASE >
{
    // nothing yet here
};

// specialization for CDialog:

template< >
class CLASS< CDialog > : public COMMON< CDialog >
{
    // members specific to CDialog
    . . .
};

// specialization for CFormView:

template< >
class CLASS< CFormView > : public COMMON< CFormView >
{
    // members specific to CFormView
    . . .
};


Usage:

CLASS< CDialog > dlg;
CLASS< CFormView > form;


I hope this works.
GeneralRe: Template argument dependent compilation Pin
tuxyboy9-Aug-06 3:40
tuxyboy9-Aug-06 3:40 
QuestionCompiling DirectX9 SDK Sample Code in VC 6 & VC 2005 Pin
Andy Rama8-Aug-06 2:05
Andy Rama8-Aug-06 2:05 
AnswerRe: Compiling DirectX9 SDK Sample Code in VC 6 & VC 2005 Pin
Amar Sutar8-Aug-06 3:04
Amar Sutar8-Aug-06 3:04 
QuestionFind the directory present or not Pin
Arul Joseph8-Aug-06 1:59
Arul Joseph8-Aug-06 1:59 
AnswerRe: Find the directory present or not Pin
Don Box8-Aug-06 2:01
Don Box8-Aug-06 2:01 
GeneralRe: Find the directory present or not Pin
Arul Joseph8-Aug-06 2:06
Arul Joseph8-Aug-06 2:06 
GeneralRe: Find the directory present or not Pin
Don Box8-Aug-06 2:08
Don Box8-Aug-06 2:08 
AnswerRe: Find the directory present or not Pin
kakan8-Aug-06 2:14
professionalkakan8-Aug-06 2:14 
AnswerRe: Find the directory present or not Pin
Naveen8-Aug-06 2:24
Naveen8-Aug-06 2:24 
AnswerRe: Find the directory present or not Pin
Steve Thresher8-Aug-06 4:26
Steve Thresher8-Aug-06 4:26 
AnswerRe: Find the directory present or not Pin
Hamid_RT8-Aug-06 8:04
Hamid_RT8-Aug-06 8:04 
QuestionTAPI - get_CallInfoString (ITCallInfo) Pin
jerome_data8-Aug-06 1:36
jerome_data8-Aug-06 1:36 
GeneralCustomized Edit Control Pin
Jörgen Sigvardsson8-Aug-06 1:16
Jörgen Sigvardsson8-Aug-06 1:16 
GeneralRe: Customized Edit Control Pin
Rage8-Aug-06 1:28
professionalRage8-Aug-06 1:28 
GeneralRe: Customized Edit Control Pin
Jörgen Sigvardsson8-Aug-06 1:40
Jörgen Sigvardsson8-Aug-06 1:40 
QuestionDoubt in Dialog class Pin
Anu_Bala8-Aug-06 0:31
Anu_Bala8-Aug-06 0:31 
AnswerRe: Doubt in Dialog class Pin
uday kiran janaswamy8-Aug-06 0:40
uday kiran janaswamy8-Aug-06 0:40 

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.