Click here to Skip to main content
15,896,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: plzz hlep Pin
Hamid_RT20-Dec-07 5:27
Hamid_RT20-Dec-07 5:27 
GeneralRe: plzz hlep Pin
CPallini20-Dec-07 5:59
mveCPallini20-Dec-07 5:59 
GeneralRe: plzz hlep Pin
Hamid_RT20-Dec-07 6:45
Hamid_RT20-Dec-07 6:45 
GeneralRe: plzz hlep Pin
Mark Salsbery20-Dec-07 5:15
Mark Salsbery20-Dec-07 5:15 
GeneralRe: plzz hlep Pin
George L. Jackson20-Dec-07 8:51
George L. Jackson20-Dec-07 8:51 
GeneralRe: plzz hlep Pin
Hamid_RT20-Dec-07 5:22
Hamid_RT20-Dec-07 5:22 
JokeRe: plzz hlep Pin
David Crow20-Dec-07 5:28
David Crow20-Dec-07 5:28 
Questionvirtual member? Pin
Stan the man20-Dec-07 2:52
Stan the man20-Dec-07 2:52 
Hi.

I am not sure how to explain this but I want to declare a member in a base class. IN a class derived from this, I want to be able to be able to override the member with another class that is derived from that original member.

Ex:

class CBase
{
virtual CTest m_test;

}

class CBase1 : public CBase
{

virtual CTest1 m_test;

}

CTest1 is derived from CTest.

I want to be able to almost use the same name in each class and just add more fuunctionality in the CBase1 class, but CBase will still be able to call fuctions from m_test. Then in CBase1, it can call additional functions available in CTest1... This is like a virtual function but I want to do it for a member variable or something.

I am not sure if I explained it right. Anyone can give me an idea?

Thanks.

Stan the man
AnswerRe: virtual member? Pin
Chris Losinger20-Dec-07 3:01
professionalChris Losinger20-Dec-07 3:01 
GeneralRe: virtual member? Pin
Stan the man20-Dec-07 3:07
Stan the man20-Dec-07 3:07 
AnswerRe: virtual member? Pin
Maximilien20-Dec-07 3:06
Maximilien20-Dec-07 3:06 
GeneralRe: virtual member? Pin
Stan the man20-Dec-07 3:11
Stan the man20-Dec-07 3:11 
AnswerRe: virtual member? Pin
Matthew Faithfull20-Dec-07 3:12
Matthew Faithfull20-Dec-07 3:12 
GeneralConvert string to long Pin
SWDevil20-Dec-07 2:41
SWDevil20-Dec-07 2:41 
GeneralRe: Convert string to long Pin
CPallini20-Dec-07 2:53
mveCPallini20-Dec-07 2:53 
GeneralRe: Convert string to long Pin
Matthew Faithfull20-Dec-07 3:03
Matthew Faithfull20-Dec-07 3:03 
QuestionDetection of databases Pin
tom groezer20-Dec-07 2:14
tom groezer20-Dec-07 2:14 
GeneralRe: Detection of databases Pin
David Crow20-Dec-07 2:28
David Crow20-Dec-07 2:28 
Questionhow to format a pen drive? Pin
Shayantani20-Dec-07 1:27
Shayantani20-Dec-07 1:27 
AnswerRe: how to format a pen drive? [modified] Pin
kakan20-Dec-07 2:08
professionalkakan20-Dec-07 2:08 
GeneralReally Not An Easy Ques. !!!!!!!! Pin
AhmedOsamaMoh20-Dec-07 1:13
AhmedOsamaMoh20-Dec-07 1:13 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
CPallini20-Dec-07 1:58
mveCPallini20-Dec-07 1:58 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
AhmedOsamaMoh20-Dec-07 2:28
AhmedOsamaMoh20-Dec-07 2:28 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
David Crow20-Dec-07 2:35
David Crow20-Dec-07 2:35 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
CPallini20-Dec-07 2:38
mveCPallini20-Dec-07 2:38 

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.