Click here to Skip to main content
15,918,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFileDialog, disable "What's This?" menu Pin
mla15410-Jul-09 7:51
mla15410-Jul-09 7:51 
QuestionWant to put a .jpg picture as a background of a single doc application Pin
m_mun8-Jul-09 4:59
m_mun8-Jul-09 4:59 
AnswerRe: Want to put a .jpg picture as a background of a single doc application Pin
Code-o-mat8-Jul-09 5:16
Code-o-mat8-Jul-09 5:16 
QuestionRe: Want to put a .jpg picture as a background of a single doc application Pin
David Crow8-Jul-09 5:28
David Crow8-Jul-09 5:28 
QuestionChange Ruler Origin in UltimateTollbox COXRuler Pin
Coach Greg8-Jul-09 4:21
Coach Greg8-Jul-09 4:21 
QuestionInheritance- how to access base class member from derived class member? Pin
Mike the Red8-Jul-09 4:03
Mike the Red8-Jul-09 4:03 
AnswerRe: Inheritance- how to access base class member from derived class member? Pin
Sarath C8-Jul-09 4:12
Sarath C8-Jul-09 4:12 
QuestionRe: Inheritance- how to access base class member from derived class member? Pin
David Crow8-Jul-09 4:15
David Crow8-Jul-09 4:15 
Mike the Red wrote:
Do I have to "explicitly inherit" a() and b() in order to use them in sum() ?

I've been all over the documentation and the articles here, but can't seem to track this down.


What's wrong with:

class baseclass
{
public:
    baseclass(){}
    baseclass(int i){}
    ~baseclass(){}
public:
   int a() {return 1;}
   int b() {return 2;}
};
 
class derived : public baseclass
{
public:
    derived(){}
    derived(int i):baseclass(i){}
public:
   int sum()
   { 
       return a() + b(); 
   }
};


"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


RantI believe it was an EBKC error... Pin
Mike the Red8-Jul-09 4:55
Mike the Red8-Jul-09 4:55 
QuestionWhat will cause "ASSERT(::IsWindow(m_hWnd))" fails? Pin
transoft8-Jul-09 3:19
transoft8-Jul-09 3:19 
QuestionRe: What will cause "ASSERT(::IsWindow(m_hWnd))" fails? Pin
David Crow8-Jul-09 3:53
David Crow8-Jul-09 3:53 
AnswerRe: What will cause "ASSERT(::IsWindow(m_hWnd))" fails? [modified] Pin
transoft8-Jul-09 12:56
transoft8-Jul-09 12:56 
AnswerRe: What will cause "ASSERT(::IsWindow(m_hWnd))" fails? Pin
Sarath C8-Jul-09 4:15
Sarath C8-Jul-09 4:15 
QuestionMicrosoft Windows 3.0 and Visual C++ 1.0 Pin
Ahmed Charfeddine8-Jul-09 3:13
Ahmed Charfeddine8-Jul-09 3:13 
AnswerRe: Microsoft Windows 3.0 and Visual C++ 1.0 [modified] Pin
CPallini8-Jul-09 3:20
mveCPallini8-Jul-09 3:20 
GeneralRe: Microsoft Windows 3.0 and Visual C++ 1.0 Pin
Ahmed Charfeddine8-Jul-09 3:22
Ahmed Charfeddine8-Jul-09 3:22 
GeneralRe: Microsoft Windows 3.0 and Visual C++ 1.0 Pin
David Crow8-Jul-09 3:56
David Crow8-Jul-09 3:56 
GeneralRe: Microsoft Windows 3.0 and Visual C++ 1.0 Pin
CPallini8-Jul-09 5:32
mveCPallini8-Jul-09 5:32 
GeneralRe: Microsoft Windows 3.0 and Visual C++ 1.0 Pin
Sarath C8-Jul-09 3:58
Sarath C8-Jul-09 3:58 
GeneralRe: Microsoft Windows 3.0 and Visual C++ 1.0 Pin
CPallini8-Jul-09 5:38
mveCPallini8-Jul-09 5:38 
AnswerRe: Microsoft Windows 3.0 and Visual C++ 1.0 Pin
Joe Woodbury8-Jul-09 6:57
professionalJoe Woodbury8-Jul-09 6:57 
GeneralRe: Microsoft Windows 3.0 and Visual C++ 1.0 Pin
Ahmed Charfeddine8-Jul-09 7:01
Ahmed Charfeddine8-Jul-09 7:01 
GeneralRe: Microsoft Windows 3.0 and Visual C++ 1.0 Pin
Joe Woodbury8-Jul-09 7:06
professionalJoe Woodbury8-Jul-09 7:06 
QuestionConvert LPRECT to Crect Pin
kumar sanghvi8-Jul-09 2:38
kumar sanghvi8-Jul-09 2:38 
AnswerRe: Convert LPRECT to Crect Pin
Cedric Moonen8-Jul-09 2:51
Cedric Moonen8-Jul-09 2:51 

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.