Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Difference between C++ Structures and C++ Classes Pin
Nemanja Trifunovic8-Aug-06 8:53
Nemanja Trifunovic8-Aug-06 8:53 
GeneralRe: Difference between C++ Structures and C++ Classes Pin
Chris Losinger8-Aug-06 9:08
professionalChris Losinger8-Aug-06 9:08 
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 
I'm putting together code for a template that implements some special tasks that I need and I want it to use with different CWnd based classes as template argument and ancestor at the same time like this:

template < class BASE >
class CLASS : public BASE
{
.
.
.
};

If I want to use it with CFormView and CDialog in the same project I need template argument dependent compiling, 'cause for example if I need to implement OnInitDialog() for CDialog, I must ignore it with CFormView, otherwise I get an error that this function is not the member of the base class.
I thought of doing string comparison of the BASE argument at the right places, but I'm not too familiar with macros.
#define STR_COMP(_base, _class) \
(strcmp(#_base, _class)==0)

and use it as

#if STR_COMP(BASE, "CDialog")
.....
#else if ...
....
#else
...
#endif
Of course it doesn't work....
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 
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 

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.