Click here to Skip to main content
15,905,914 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Debug Assertion Failed Pin
David Crow17-Apr-06 3:29
David Crow17-Apr-06 3:29 
AnswerRe: Debug Assertion Failed Pin
Stephen Hewitt17-Apr-06 4:24
Stephen Hewitt17-Apr-06 4:24 
Question[Message Deleted] Pin
ddmcr17-Apr-06 2:47
ddmcr17-Apr-06 2:47 
AnswerRe: Display Tooltips for each item in ListCtrl Pin
YaronNir17-Apr-06 4:16
YaronNir17-Apr-06 4:16 
AnswerRe: Display Tooltips for each item in ListCtrl Pin
Michael Dunn17-Apr-06 8:02
sitebuilderMichael Dunn17-Apr-06 8:02 
QuestionSlicing in C++ Pin
Krishnatv17-Apr-06 2:44
Krishnatv17-Apr-06 2:44 
AnswerRe: Slicing in C++ Pin
David Crow17-Apr-06 3:30
David Crow17-Apr-06 3:30 
AnswerRe: Slicing in C++ Pin
Milton Karimbekallil17-Apr-06 5:00
Milton Karimbekallil17-Apr-06 5:00 
I guess you are referring the object slicing issue in c++ while passing class objects as by value in function parameters.

This issue happens when we are passing a derived class object as by value parameter to a function and there if we receive it into a variable of a base class type.

In this scenario generally, a derived class object will have more data members than its base or ancestor class objects, so the compiler, without complaining, simply "slices off" the extra data members of the derived class object and uses only the members inherited from the base or ancestor class for the base or ancestor class variable. However, when references or pointers to base arguments are used, this "slicing" does not occur, which is one of the reasons that references and pointers are so important in C++ OOP.

cheers mil10.
GeneralRe: Slicing in C++ Pin
Krishnatv17-Apr-06 19:35
Krishnatv17-Apr-06 19:35 
QuestionNEED HELP Pin
malik20017-Apr-06 2:31
malik20017-Apr-06 2:31 
AnswerRe: NEED HELP Pin
David Crow17-Apr-06 3:31
David Crow17-Apr-06 3:31 
QuestionCan I do this? Pin
ewighell17-Apr-06 2:20
ewighell17-Apr-06 2:20 
AnswerRe: Can I do this? Pin
Stephen Hewitt17-Apr-06 2:53
Stephen Hewitt17-Apr-06 2:53 
AnswerRe: Can I do this? Pin
YaronNir17-Apr-06 4:18
YaronNir17-Apr-06 4:18 
QuestionImporting class containing STL map from DLL Pin
Marko Budisic17-Apr-06 1:37
Marko Budisic17-Apr-06 1:37 
AnswerRe: Importing class containing STL map from DLL Pin
Roland Pibinger17-Apr-06 6:18
Roland Pibinger17-Apr-06 6:18 
GeneralRe: Importing class containing STL map from DLL Pin
Marko Budisic17-Apr-06 6:28
Marko Budisic17-Apr-06 6:28 
QuestionZooming with SetViewportExt and SetWindowExt Pin
Cosescu Bogdan17-Apr-06 1:16
Cosescu Bogdan17-Apr-06 1:16 
QuestionRepainting a child window Pin
Sarvan AL17-Apr-06 1:12
Sarvan AL17-Apr-06 1:12 
AnswerRe: Repainting a child window Pin
YaronNir17-Apr-06 4:25
YaronNir17-Apr-06 4:25 
AnswerRe: Repainting a child window Pin
Hamid_RT17-Apr-06 19:32
Hamid_RT17-Apr-06 19:32 
GeneralRe: Repainting a child window Pin
Sarvan AL17-Apr-06 21:07
Sarvan AL17-Apr-06 21:07 
QuestionWhere has it gone?? Pin
Smith#17-Apr-06 0:49
Smith#17-Apr-06 0:49 
AnswerRe: Where has it gone?? Pin
Jim Jim17-Apr-06 1:52
Jim Jim17-Apr-06 1:52 
QuestionVariable Y-Axis Pin
RockyJames17-Apr-06 0:30
RockyJames17-Apr-06 0:30 

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.