Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: NO advertising, please Pin
Lawand27-Dec-08 9:15
Lawand27-Dec-08 9:15 
GeneralRe: NO advertising, please Pin
CPallini27-Dec-08 10:01
mveCPallini27-Dec-08 10:01 
GeneralRe: NO advertising, please Pin
Rajesh R Subramanian28-Dec-08 4:57
professionalRajesh R Subramanian28-Dec-08 4:57 
QuestionFailed to Launch Help Pin
Ali Tavakol27-Dec-08 3:57
Ali Tavakol27-Dec-08 3:57 
Questionauto_ptr - passing to functions and best practices Pin
Christian Flutcher27-Dec-08 2:53
Christian Flutcher27-Dec-08 2:53 
AnswerRe: auto_ptr - passing to functions and best practices Pin
Chris Losinger27-Dec-08 5:22
professionalChris Losinger27-Dec-08 5:22 
GeneralRe: auto_ptr - passing to functions and best practices Pin
Christian Flutcher27-Dec-08 5:58
Christian Flutcher27-Dec-08 5:58 
GeneralRe: auto_ptr - passing to functions and best practices Pin
Chris Losinger27-Dec-08 6:17
professionalChris Losinger27-Dec-08 6:17 
yes, i think your examples are correct. since the problem with auto_ptr, in this situation, is that passing an auto_ptr to a function makes a copy, and the copy takes control of the allocated memory. passing it by reference (either as a ref or as a ptr) avoids that copy, and the outer function maintains control of the memory.


GeneralRe: auto_ptr - passing to functions and best practices Pin
Christian Flutcher27-Dec-08 6:26
Christian Flutcher27-Dec-08 6:26 
GeneralRe: auto_ptr - passing to functions and best practices Pin
Mark Salsbery27-Dec-08 7:07
Mark Salsbery27-Dec-08 7:07 
GeneralRe: auto_ptr - passing to functions and best practices Pin
Christian Flutcher27-Dec-08 16:27
Christian Flutcher27-Dec-08 16:27 
GeneralRe: auto_ptr - passing to functions and best practices Pin
Mark Salsbery28-Dec-08 4:31
Mark Salsbery28-Dec-08 4:31 
Questionbuttons are hidden by picture control Pin
VCProgrammer27-Dec-08 1:26
VCProgrammer27-Dec-08 1:26 
AnswerRe: buttons are hidden by picture control Pin
Richard Andrew x6427-Dec-08 1:52
professionalRichard Andrew x6427-Dec-08 1:52 
GeneralRe: buttons are hidden by picture control Pin
VCProgrammer27-Dec-08 1:57
VCProgrammer27-Dec-08 1:57 
GeneralRe: buttons are hidden by picture control Pin
Richard Andrew x6427-Dec-08 1:59
professionalRichard Andrew x6427-Dec-08 1:59 
QuestionRe: buttons are hidden by picture control Pin
CPallini27-Dec-08 4:57
mveCPallini27-Dec-08 4:57 
GeneralRe: buttons are hidden by picture control Pin
Luc Pattyn27-Dec-08 5:47
sitebuilderLuc Pattyn27-Dec-08 5:47 
JokeRe: buttons are hidden by picture control Pin
CPallini27-Dec-08 7:03
mveCPallini27-Dec-08 7:03 
Generalare you being served? Pin
Luc Pattyn27-Dec-08 8:36
sitebuilderLuc Pattyn27-Dec-08 8:36 
QuestionHow can SpeedUp Build Process? Pin
Le@rner26-Dec-08 22:45
Le@rner26-Dec-08 22:45 
AnswerRe: How can SpeedUp Build Process? Pin
Jijo.Raj27-Dec-08 0:28
Jijo.Raj27-Dec-08 0:28 
AnswerRe: How can SpeedUp Build Process? Pin
Richard Andrew x6427-Dec-08 1:49
professionalRichard Andrew x6427-Dec-08 1:49 
QuestionIs there any facility for C++ to design GUI using XML? Pin
followait26-Dec-08 21:23
followait26-Dec-08 21:23 
AnswerRe: Is there any facility for C++ to design GUI using XML? Pin
Richard Andrew x6427-Dec-08 1:47
professionalRichard Andrew x6427-Dec-08 1:47 

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.