Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalweird error on defining a friend method Pin
gizmokaka8-Jan-08 11:44
gizmokaka8-Jan-08 11:44 
GeneralRe: weird error on defining a friend method Pin
Mark Salsbery8-Jan-08 12:00
Mark Salsbery8-Jan-08 12:00 
GeneralRe: weird error on defining a friend method Pin
gizmokaka8-Jan-08 22:05
gizmokaka8-Jan-08 22:05 
GeneralRe: weird error on defining a friend method Pin
Mark Salsbery9-Jan-08 6:32
Mark Salsbery9-Jan-08 6:32 
QuestionSaving image in database Pin
reza_a8-Jan-08 11:04
reza_a8-Jan-08 11:04 
QuestionRe: Saving image in database Pin
Mark Salsbery8-Jan-08 12:01
Mark Salsbery8-Jan-08 12:01 
GeneralRe: Saving image in database Pin
Mahesh Kulkarni8-Jan-08 22:21
Mahesh Kulkarni8-Jan-08 22:21 
Questionhow do I call a base implemetation from the derived implementation of the same function Pin
gizmokaka8-Jan-08 10:00
gizmokaka8-Jan-08 10:00 
Hello to all, and thanks for helping.
My question is something like this:
Say I have a function in a base class that prints the value of two of it's members.
Now I go and create a derived class from the base class the has one more member on top of the two it inherits from the base.
and lets say the function name is show().
How, from the implementation of the derived do I call the implemetation from the base, to save code duplicating?????

class base
{
   int a;
   int b;
   void show(){cout << a << b;}
};

class derived
{
   int c;
   void show()
   {
      ....;
      cout << c;
   }
};


what goes instead of the ....; line???

again thanks for your help Smile | :)
AnswerRe: how do I call a base implemetation from the derived implementation of the same function Pin
CPallini8-Jan-08 10:13
mveCPallini8-Jan-08 10:13 
GeneralRe: how do I call a base implemetation from the derived implementation of the same function Pin
gizmokaka8-Jan-08 10:19
gizmokaka8-Jan-08 10:19 
GeneralRe: how do I call a base implemetation from the derived implementation of the same function Pin
CPallini8-Jan-08 10:32
mveCPallini8-Jan-08 10:32 
GeneralRe: how do I call a base implemetation from the derived implementation of the same function Pin
gizmokaka8-Jan-08 10:59
gizmokaka8-Jan-08 10:59 
GeneralRe: how do I call a base implemetation from the derived implementation of the same function Pin
gizmokaka8-Jan-08 11:04
gizmokaka8-Jan-08 11:04 
GeneralRe: how do I call a base implemetation from the derived implementation of the same function Pin
CPallini8-Jan-08 21:26
mveCPallini8-Jan-08 21:26 
GeneralClicking in MFC CListCtrl beeps in Vista Pin
anthonym78-Jan-08 9:12
anthonym78-Jan-08 9:12 
GeneralRe: Clicking in MFC CListCtrl beeps in Vista Pin
Mahesh Kulkarni8-Jan-08 19:44
Mahesh Kulkarni8-Jan-08 19:44 
GeneralRe: Clicking in MFC CListCtrl beeps in Vista Pin
anthonym79-Jan-08 6:01
anthonym79-Jan-08 6:01 
GeneralRe: Clicking in MFC CListCtrl beeps in Vista Pin
anthonym79-Jan-08 12:09
anthonym79-Jan-08 12:09 
Questionapostrophe or single quote causes problem in query Pin
littleGreenDude8-Jan-08 5:50
littleGreenDude8-Jan-08 5:50 
GeneralRe: apostrophe or single quote causes problem in query Pin
toxcct8-Jan-08 6:06
toxcct8-Jan-08 6:06 
QuestionRe: apostrophe or single quote causes problem in query Pin
David Crow8-Jan-08 6:11
David Crow8-Jan-08 6:11 
QuestionHow do I determine the Com Port number of a serial port emulating device? Pin
arnold_w8-Jan-08 5:14
arnold_w8-Jan-08 5:14 
AnswerRe: How do I determine the Com Port number of a serial port emulating device? Pin
Member 7549608-Jan-08 18:01
Member 7549608-Jan-08 18:01 
GeneralRe: How do I determine the Com Port number of a serial port emulating device? Pin
arnold_w9-Jan-08 1:29
arnold_w9-Jan-08 1:29 
GeneralRe: How do I determine the Com Port number of a serial port emulating device? Pin
Member 7549609-Jan-08 3:44
Member 7549609-Jan-08 3:44 

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.