Click here to Skip to main content
15,919,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with loading a gray image file.. Pin
Jon Hulatt28-Mar-02 3:01
Jon Hulatt28-Mar-02 3:01 
QuestionHow to use the point points to baseclass member to point to inherited class member? Pin
Feng Qin27-Mar-02 23:33
Feng Qin27-Mar-02 23:33 
AnswerRe: How to use the point points to baseclass member to point to inherited class member? Pin
Feng Qin27-Mar-02 23:38
Feng Qin27-Mar-02 23:38 
GeneralRe: How to use the point points to baseclass member to point to inherited class member? Pin
Feng Qin28-Mar-02 0:19
Feng Qin28-Mar-02 0:19 
GeneralRe: How to use the point points to baseclass member to point to inherited class member? Pin
Christian Graus28-Mar-02 1:22
protectorChristian Graus28-Mar-02 1:22 
GeneralRe: How to use the point points to baseclass member to point to inherited class member? Pin
Tomasz Sowinski28-Mar-02 1:32
Tomasz Sowinski28-Mar-02 1:32 
GeneralRe: How to use the point points to baseclass member to point to inherited class member? Pin
Christian Graus28-Mar-02 1:35
protectorChristian Graus28-Mar-02 1:35 
GeneralRe: How to use the point points to baseclass member to point to inherited class member? Pin
Feng Qin28-Mar-02 14:54
Feng Qin28-Mar-02 14:54 
No,no,no, my meaning is how to write like the following code:

A<T>* ptA;
B b;
C c;

ptA=&b; //upcast here
ptA->xxx();

ptA=&c; //upcast here
ptA->xxx();

But the "A<T>* ptA" is invalid, because it need instantiation here, I must fill the T with B or C, but if I write A<B>* ptA, then ptA=&c is invalid, the same as writing A<C>* ptA.

Now I want to know, how to define a pointer can pointer b or c?


I'm amumu, and you?
GeneralRe: How to use the point points to baseclass member to point to inherited class member? Pin
Christian Graus28-Mar-02 15:01
protectorChristian Graus28-Mar-02 15:01 
GeneralRe: How to use the point points to baseclass member to point to inherited class member? Pin
Feng Qin28-Mar-02 23:31
Feng Qin28-Mar-02 23:31 
GeneralDynamically changing Toolbar's Tooltips Pin
louis27-Mar-02 23:24
louis27-Mar-02 23:24 
GeneralRe: Dynamically changing Toolbar's Tooltips Pin
Tomasz Sowinski27-Mar-02 23:36
Tomasz Sowinski27-Mar-02 23:36 
GeneralRe: Dynamically changing Toolbar's Tooltips Pin
louis1-Apr-02 23:16
louis1-Apr-02 23:16 
GeneralActivating an OLE object in an OLE container Pin
27-Mar-02 23:23
suss27-Mar-02 23:23 
GeneralCDatabase & CRecordset Pin
Drawil27-Mar-02 19:32
Drawil27-Mar-02 19:32 
GeneralRe: CDatabase & CRecordset Pin
Mazdak27-Mar-02 20:38
Mazdak27-Mar-02 20:38 
GeneralVS.NET and CWnd Pin
alex.barylski27-Mar-02 19:02
alex.barylski27-Mar-02 19:02 
GeneralRe: VS.NET and CWnd Pin
Tomasz Sowinski27-Mar-02 22:28
Tomasz Sowinski27-Mar-02 22:28 
GeneralRe: VS.NET and CWnd Pin
alex.barylski27-Mar-02 23:43
alex.barylski27-Mar-02 23:43 
GeneralRe: VS.NET and CWnd Pin
Tomasz Sowinski27-Mar-02 23:51
Tomasz Sowinski27-Mar-02 23:51 
GeneralRe: VS.NET and CWnd Pin
alex.barylski28-Mar-02 1:05
alex.barylski28-Mar-02 1:05 
GeneralAdo Program Run Error On Machine whithout VC++ IDE Pin
Forlegend27-Mar-02 18:47
Forlegend27-Mar-02 18:47 
GeneralRe: Ado Program Run Error On Machine whithout VC++ IDE Pin
Michael P Butler27-Mar-02 21:59
Michael P Butler27-Mar-02 21:59 
GeneralRe: Ado Program Run Error On Machine whithout VC++ IDE Pin
Forlegend28-Mar-02 1:35
Forlegend28-Mar-02 1:35 
GeneralVC++ nested Template Pin
nandika27-Mar-02 18:46
nandika27-Mar-02 18:46 

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.