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

C / C++ / MFC

 
AnswerRe: CAnimateCtrl in modeless dialog... Pin
Hans Dietrich30-Nov-08 23:57
mentorHans Dietrich30-Nov-08 23:57 
GeneralRe: CAnimateCtrl in modeless dialog... Pin
Cpt Rick1-Dec-08 4:26
Cpt Rick1-Dec-08 4:26 
AnswerRe: CAnimateCtrl in modeless dialog... Pin
Cpt Rick1-Dec-08 11:32
Cpt Rick1-Dec-08 11:32 
QuestionDestroying controls created by CWinFormControl Pin
astibich230-Nov-08 11:45
astibich230-Nov-08 11:45 
QuestionC++ destructor Pin
Fred Andres30-Nov-08 5:35
Fred Andres30-Nov-08 5:35 
AnswerRe: C++ destructor Pin
PJ Arends30-Nov-08 7:03
professionalPJ Arends30-Nov-08 7:03 
GeneralRe: C++ destructor Pin
Fred Andres30-Nov-08 7:27
Fred Andres30-Nov-08 7:27 
AnswerRe: C++ destructor Pin
Mark Salsbery30-Nov-08 7:19
Mark Salsbery30-Nov-08 7:19 
Fred Andres wrote:
This function destroys variable0 and variable1 upon completion:
void variableCopy0(variable variable0, variable variable1)


Yes it does, because the scope of those variables is the function.
The original variables you pass remain unaltered.

You need to pass by reference. Try something like
void variableCopy0(<code>const variable &</code>variable0, variable <code>&</code>variable1) {


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionConverting an integer to a string. Pin
Quecumber25630-Nov-08 5:17
Quecumber25630-Nov-08 5:17 
AnswerRe: Converting an integer to a string. Pin
PJ Arends30-Nov-08 6:57
professionalPJ Arends30-Nov-08 6:57 
AnswerRe: Converting an integer to a string. Pin
Mark Salsbery30-Nov-08 7:24
Mark Salsbery30-Nov-08 7:24 
QuestionWhat is the difference between these 2 ways of declaring an object? Pin
KaKa'30-Nov-08 3:20
KaKa'30-Nov-08 3:20 
AnswerRe: What is the difference between these 2 ways of declaring an object? Pin
Jijo.Raj30-Nov-08 4:25
Jijo.Raj30-Nov-08 4:25 
GeneralRe: What is the difference between these 2 ways of declaring an object? Pin
KaKa'30-Nov-08 22:41
KaKa'30-Nov-08 22:41 
QuestionCFileDialog maximum file number Pin
followait30-Nov-08 2:31
followait30-Nov-08 2:31 
AnswerRe: CFileDialog maximum file number Pin
PJ Arends30-Nov-08 6:50
professionalPJ Arends30-Nov-08 6:50 
GeneralRe: CFileDialog maximum file number Pin
Hans Dietrich30-Nov-08 23:36
mentorHans Dietrich30-Nov-08 23:36 
QuestionIWebBrowser2 focus problem with IE6 Pin
YaronNir30-Nov-08 1:04
YaronNir30-Nov-08 1:04 
AnswerRe: IWebBrowser2 focus problem with IE6 Pin
PJ Arends30-Nov-08 7:12
professionalPJ Arends30-Nov-08 7:12 
GeneralRe: IWebBrowser2 focus problem with IE6 Pin
YaronNir30-Nov-08 19:35
YaronNir30-Nov-08 19:35 
GeneralRe: IWebBrowser2 focus problem with IE6 Pin
PJ Arends1-Dec-08 8:22
professionalPJ Arends1-Dec-08 8:22 
GeneralRe: IWebBrowser2 focus problem with IE6 Pin
YaronNir1-Dec-08 22:06
YaronNir1-Dec-08 22:06 
QuestionArray of Pointers to Functions & Math [modified] Pin
evdoxus30-Nov-08 0:04
evdoxus30-Nov-08 0:04 
AnswerRe: Array of Pointers to Functions & Math Pin
Richard Andrew x6430-Nov-08 3:44
professionalRichard Andrew x6430-Nov-08 3:44 
QuestionWM_CTLCOLOREDIT with Multiline Dialog Edit control Pin
ForNow29-Nov-08 15:53
ForNow29-Nov-08 15:53 

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.