Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: convert delphi to c++ builder Pin
raj15767-May-09 0:45
raj15767-May-09 0:45 
GeneralRe: convert delphi to c++ builder Pin
Stuart Dootson7-May-09 1:06
professionalStuart Dootson7-May-09 1:06 
GeneralRe: convert delphi to c++ builder Pin
raj15767-May-09 1:12
raj15767-May-09 1:12 
GeneralRe: convert delphi to c++ builder Pin
Stuart Dootson7-May-09 1:37
professionalStuart Dootson7-May-09 1:37 
GeneralRe: convert delphi to c++ builder Pin
raj15767-May-09 1:47
raj15767-May-09 1:47 
GeneralRe: convert delphi to c++ builder Pin
Stuart Dootson7-May-09 1:53
professionalStuart Dootson7-May-09 1:53 
GeneralRe: convert delphi to c++ builder Pin
raj15767-May-09 1:56
raj15767-May-09 1:56 
QuestionC++ Template question Pin
rrrado6-May-09 22:48
rrrado6-May-09 22:48 
I need to crate template class which will be generic parent of more classes containing data. Each child class defines something like item ID (different name in each class, but always int) and I need to let parent class know it's name to be able to make some operations on that.

This is pseudocode:
template <class T, ???XXX > class DRecord
{
    void DoReset() {  ((T*)this) ->   XXX = 0; }  // accessing the ID
}


class A : public DRecord<A, ???A_XXX >
{
   int A_XXX;
}



XXX is template param I need to define and use some way. I've tried to use member pointers but it didn't compile. Is it possible to define member of child class as parameter into parent class? In moment of parsing the template the member variable is not declared yet, so I'm not sure whether is it possible.
Thank you.
QuestionRe: C++ Template question Pin
CPallini6-May-09 22:55
mveCPallini6-May-09 22:55 
AnswerRe: C++ Template question Pin
rrrado6-May-09 23:13
rrrado6-May-09 23:13 
QuestionRe: C++ Template question Pin
CPallini6-May-09 23:19
mveCPallini6-May-09 23:19 
AnswerRe: C++ Template question Pin
rrrado6-May-09 23:37
rrrado6-May-09 23:37 
QuestionRe: C++ Template question Pin
CPallini6-May-09 23:49
mveCPallini6-May-09 23:49 
AnswerRe: C++ Template question Pin
Stuart Dootson6-May-09 23:49
professionalStuart Dootson6-May-09 23:49 
GeneralRe: C++ Template question Pin
rrrado7-May-09 0:42
rrrado7-May-09 0:42 
GeneralRe: C++ Template question Pin
Stuart Dootson7-May-09 0:46
professionalStuart Dootson7-May-09 0:46 
QuestionPlease help me!! it's urgent!! Pin
erenakman6-May-09 21:29
erenakman6-May-09 21:29 
AnswerRe: Please help me!! it's urgent!! Pin
Chandrasekharan P6-May-09 21:35
Chandrasekharan P6-May-09 21:35 
AnswerRe: Please help me!! it's urgent!! Pin
CPallini6-May-09 21:36
mveCPallini6-May-09 21:36 
AnswerRe: Please help me!! it's urgent!! Pin
_AnsHUMAN_ 6-May-09 21:44
_AnsHUMAN_ 6-May-09 21:44 
QuestionDirectX: "render to surface" or "render to device" (unmanaged) Pin
Pixinger776-May-09 21:01
Pixinger776-May-09 21:01 
AnswerRe: DirectX: "render to surface" or "render to device" (unmanaged) Pin
CPallini6-May-09 21:29
mveCPallini6-May-09 21:29 
AnswerRe: DirectX: "render to surface" or "render to device" (unmanaged) Pin
Stuart Dootson6-May-09 23:41
professionalStuart Dootson6-May-09 23:41 
Questionexception about 0x000006BA: RPC can not used (服务器不可用) Pin
fresh8888886-May-09 20:52
fresh8888886-May-09 20:52 
QuestionHow to realize the two aggressive color scale Pin
songhunhun6-May-09 20:47
songhunhun6-May-09 20:47 

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.