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

C / C++ / MFC

 
AnswerRe: com Pin
Wamuti14-Feb-08 18:43
Wamuti14-Feb-08 18:43 
GeneralRe: com Pin
ThatsAlok14-Feb-08 22:25
ThatsAlok14-Feb-08 22:25 
GeneralAlignment of Variables Whitin structure Pin
ForNow14-Feb-08 17:53
ForNow14-Feb-08 17:53 
GeneralRe: Alignment of Variables Whitin structure Pin
Maxwell Chen14-Feb-08 18:11
Maxwell Chen14-Feb-08 18:11 
GeneralRe: Alignment of Variables Whitin structure Pin
ForNow14-Feb-08 22:05
ForNow14-Feb-08 22:05 
GeneralRe: Alignment of Variables Whitin structure Pin
Iain Clarke, Warrior Programmer14-Feb-08 22:28
Iain Clarke, Warrior Programmer14-Feb-08 22:28 
GeneralRe: Alignment of Variables Whitin structure Pin
ForNow15-Feb-08 0:01
ForNow15-Feb-08 0:01 
GeneralHelp with OOP Pin
Lord Kixdemp14-Feb-08 17:22
Lord Kixdemp14-Feb-08 17:22 
Hello everyone!

I'm designing a OOP-based system in C++, and I'm having a little problem. Say I have this:

class Class1
{
    virtual void Draw(Image *a_pImage);
};

class Class2 : public Class1
{
    virtual void Draw(Image *a_pImage);
};


Class1::Draw takes care of ugly low-level stuff, and that's a lot of code. How can Class2::Draw call Class1::Draw so that I don't have to copy-paste all of the code in Class2? In C#, for example, you used base.Draw, but base doesn't exist in C++...
Thanks!

Windows Calculator told me I will die at 28. Frown | :(

GeneralRe: Help with OOP [modified] Pin
Rajkumar R14-Feb-08 17:34
Rajkumar R14-Feb-08 17:34 
GeneralRe: Help with OOP Pin
Lord Kixdemp14-Feb-08 17:38
Lord Kixdemp14-Feb-08 17:38 
GeneralRe: Help with OOP Pin
Rajesh R Subramanian14-Feb-08 20:30
professionalRajesh R Subramanian14-Feb-08 20:30 
GeneralRe: Help with OOP Pin
Rajkumar R14-Feb-08 22:12
Rajkumar R14-Feb-08 22:12 
GeneralRe: Help with OOP Pin
David Crow15-Feb-08 3:37
David Crow15-Feb-08 3:37 
QuestionHow to send Shift/Ctrl/Alt + key to background window Pin
njhy14-Feb-08 12:11
njhy14-Feb-08 12:11 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajkumar R14-Feb-08 18:04
Rajkumar R14-Feb-08 18:04 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
njhy15-Feb-08 2:14
njhy15-Feb-08 2:14 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajesh R Subramanian14-Feb-08 20:32
professionalRajesh R Subramanian14-Feb-08 20:32 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
njhy15-Feb-08 2:15
njhy15-Feb-08 2:15 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajesh R Subramanian15-Feb-08 2:23
professionalRajesh R Subramanian15-Feb-08 2:23 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
njhy15-Feb-08 2:47
njhy15-Feb-08 2:47 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajesh R Subramanian15-Feb-08 3:21
professionalRajesh R Subramanian15-Feb-08 3:21 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
njhy15-Feb-08 4:00
njhy15-Feb-08 4:00 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajesh R Subramanian15-Feb-08 4:21
professionalRajesh R Subramanian15-Feb-08 4:21 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajkumar R15-Feb-08 5:43
Rajkumar R15-Feb-08 5:43 
QuestionHow to scan a list of parallel port from my app ? Pin
quangpk14-Feb-08 11:26
quangpk14-Feb-08 11:26 

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.