Click here to Skip to main content
16,010,394 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Limitation Pin
Anurag Gandhi5-Jun-07 23:50
professionalAnurag Gandhi5-Jun-07 23:50 
AnswerRe: CString Limitation Pin
David Crow6-Jun-07 2:59
David Crow6-Jun-07 2:59 
QuestionHuge increase in memory usage with Debug binary [modified] Pin
mandanani5-Jun-07 22:34
mandanani5-Jun-07 22:34 
QuestionRe: Huge increase in memory usage with Debug binary Pin
David Crow6-Jun-07 3:03
David Crow6-Jun-07 3:03 
AnswerRe: Huge increase in memory usage with Debug binary Pin
mandanani6-Jun-07 18:14
mandanani6-Jun-07 18:14 
AnswerRe: Huge increase in memory usage with Debug binary Pin
Cyrilix6-Jun-07 4:24
Cyrilix6-Jun-07 4:24 
GeneralRe: Huge increase in memory usage with Debug binary Pin
David Crow6-Jun-07 4:57
David Crow6-Jun-07 4:57 
GeneralRe: Huge increase in memory usage with Debug binary Pin
mandanani6-Jun-07 18:29
mandanani6-Jun-07 18:29 
Actually, this is a method which does the job of constructor.

Here below is the code snippet:

class CashflowVO derived from CValueObjectBase
>>>>>>>>>>>>>>>>>>>>
CValueObjectBase* CashflowVO::clone() const
{
return new CashflowVO(*this);
}
>>>>>>>>>>>>>>>>>>>>

Clone methos is pure virtual method in CValueObjectBase. The below code calls the respective clone method of derived object. Here pValueObjectBaseOrg can be any of the derived class, but respective object is getting copied and pointer is returned to pValueObjectBase.

>>>>>>>>>>>>>>>>>>>>
CValueObjectBase * m_pValueObjectBase = m_pValueObjectBaseOrg->clone();
>>>>>>>>>>>>>>>>>>>>

Hope I make sense here.



AnswerRe: Huge increase in memory usage with Debug binary Pin
Mark Salsbery6-Jun-07 5:39
Mark Salsbery6-Jun-07 5:39 
GeneralRe: Huge increase in memory usage with Debug binary Pin
mandanani6-Jun-07 18:21
mandanani6-Jun-07 18:21 
QuestionSet the values of a field Pin
villaa5-Jun-07 22:20
villaa5-Jun-07 22:20 
AnswerRe: Set the values of a field Pin
Paresh Chitte6-Jun-07 0:58
Paresh Chitte6-Jun-07 0:58 
AnswerRe: Set the values of a field Pin
Hamid_RT6-Jun-07 7:55
Hamid_RT6-Jun-07 7:55 
QuestionLinking to ODBC.dll Pin
Programm3r5-Jun-07 22:19
Programm3r5-Jun-07 22:19 
AnswerRe: Linking to ODBC.dll Pin
Optimus Chaos5-Jun-07 22:36
Optimus Chaos5-Jun-07 22:36 
GeneralRe: Linking to ODBC.dll Pin
Programm3r5-Jun-07 22:43
Programm3r5-Jun-07 22:43 
GeneralRe: Linking to ODBC.dll Pin
Optimus Chaos5-Jun-07 22:54
Optimus Chaos5-Jun-07 22:54 
GeneralRe: Linking to ODBC.dll Pin
Programm3r5-Jun-07 23:16
Programm3r5-Jun-07 23:16 
QuestionRe: Linking to ODBC.dll Pin
David Crow6-Jun-07 3:50
David Crow6-Jun-07 3:50 
QuestionHow to get homeDirectory Pin
VC_RYK5-Jun-07 22:12
VC_RYK5-Jun-07 22:12 
AnswerRe: How to get homeDirectory Pin
Optimus Chaos5-Jun-07 22:32
Optimus Chaos5-Jun-07 22:32 
AnswerRe: How to get homeDirectory Pin
Michael Dunn5-Jun-07 22:35
sitebuilderMichael Dunn5-Jun-07 22:35 
AnswerRe: How to get homeDirectory Pin
CPallini5-Jun-07 22:39
mveCPallini5-Jun-07 22:39 
QuestionDisplaying a picture? Pin
iayd5-Jun-07 21:47
iayd5-Jun-07 21:47 
AnswerRe: Displaying a picture? Pin
CPallini5-Jun-07 22:00
mveCPallini5-Jun-07 22:00 

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.