Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltransfer data between dialog boxes Pin
abhi_code31-May-05 21:36
abhi_code31-May-05 21:36 
GeneralRe: transfer data between dialog boxes Pin
Cedric Moonen31-May-05 21:55
Cedric Moonen31-May-05 21:55 
GeneralRe: transfer data between dialog boxes Pin
abhi_code1-Jun-05 0:59
abhi_code1-Jun-05 0:59 
GeneralRe: transfer data between dialog boxes Pin
Christian Graus31-May-05 21:58
protectorChristian Graus31-May-05 21:58 
GeneralRe: transfer data between dialog boxes Pin
abhi_code1-Jun-05 1:02
abhi_code1-Jun-05 1:02 
GeneralAssignement operator Pin
Haakon S.31-May-05 21:17
Haakon S.31-May-05 21:17 
GeneralRe: Assignement operator Pin
Haakon S.31-May-05 21:20
Haakon S.31-May-05 21:20 
GeneralRe: Assignement operator Pin
PJ Arends31-May-05 21:50
professionalPJ Arends31-May-05 21:50 
Haakon S. wrote:
only the CBaseClass member is assigned

I would have thought only the CDerivedClass member would be assignedConfused | :confused:

What I would do is call the base class operator= from the derived class operator= to assign the base class members
const CDerivedClass& CDerivedClass::operator =(const CDerivedClass &d)
{
   *(CBaseClass *)this = (CBaseClass &)d;   // calls CBaseClass::operator =
   m_intD = d.m_intD;
   return *this;
}




"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004

GeneralRe: Assignement operator Pin
Haakon S.1-Jun-05 3:50
Haakon S.1-Jun-05 3:50 
GeneralRe: Assignement operator Pin
PJ Arends1-Jun-05 14:57
professionalPJ Arends1-Jun-05 14:57 
GeneralRe: Assignement operator Pin
Haakon S.1-Jun-05 20:54
Haakon S.1-Jun-05 20:54 
GeneralRe: Assignement operator Pin
Haakon S.2-Jun-05 0:00
Haakon S.2-Jun-05 0:00 
GeneralRe: Assignement operator Pin
S. Senthil Kumar31-May-05 23:12
S. Senthil Kumar31-May-05 23:12 
GeneralCadlib for creating dxf Pin
saqibsohail31-May-05 20:51
saqibsohail31-May-05 20:51 
GeneralManaged Form in Unmanaged Host Pin
Aamir Butt31-May-05 20:47
Aamir Butt31-May-05 20:47 
GeneralRe: Managed Form in Unmanaged Host Pin
Ryan Binns31-May-05 22:20
Ryan Binns31-May-05 22:20 
GeneralMaking setup file vc++ Pin
ningthemcha00731-May-05 20:19
ningthemcha00731-May-05 20:19 
GeneralRe: Making setup file vc++ Pin
ThatsAlok31-May-05 20:33
ThatsAlok31-May-05 20:33 
Generalpop up message Pin
ask_you31-May-05 17:44
ask_you31-May-05 17:44 
GeneralRe: pop up message Pin
Michael Dunn31-May-05 18:39
sitebuilderMichael Dunn31-May-05 18:39 
GeneralRe: pop up message Pin
ddmcr31-May-05 20:58
ddmcr31-May-05 20:58 
GeneralRe: pop up message Pin
Anonymous31-May-05 21:48
Anonymous31-May-05 21:48 
GeneralRe: pop up message Pin
PJ Arends31-May-05 22:11
professionalPJ Arends31-May-05 22:11 
GeneralRe: pop up message Pin
ThatsAlok1-Jun-05 18:43
ThatsAlok1-Jun-05 18:43 
GeneralAssigns a new path to a system folder through its CSIDL Pin
shangguancheng31-May-05 17:13
shangguancheng31-May-05 17:13 

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.