Click here to Skip to main content
15,881,839 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Some C++ Concepts Pin
Alan Balkany8-Sep-09 5:48
Alan Balkany8-Sep-09 5:48 
GeneralRe: Some C++ Concepts Pin
«_Superman_»8-Sep-09 1:30
professional«_Superman_»8-Sep-09 1:30 
GeneralRe: Some C++ Concepts Pin
hrishiS8-Sep-09 1:33
hrishiS8-Sep-09 1:33 
GeneralRe: Some C++ Concepts Pin
Selvam R8-Sep-09 2:10
professionalSelvam R8-Sep-09 2:10 
GeneralRe: Some C++ Concepts Pin
David Crow8-Sep-09 3:08
David Crow8-Sep-09 3:08 
QuestionFunction out of scope Pin
Nandu_77b8-Sep-09 0:54
Nandu_77b8-Sep-09 0:54 
AnswerRe: Function out of scope Pin
«_Superman_»8-Sep-09 1:05
professional«_Superman_»8-Sep-09 1:05 
AnswerRe: Function out of scope Pin
hrishiS8-Sep-09 1:13
hrishiS8-Sep-09 1:13 
the problem I could notice is that, ret is a automatic variable , so it is no longer available once it comes out from the function ToStr().
Either you can have it as global variable, or make a variable of pointer/reference of String , inside fun and pass it to ToStr

-----------------------------
I am a beginner

GeneralRe: Function out of scope Pin
Cedric Moonen8-Sep-09 1:46
Cedric Moonen8-Sep-09 1:46 
GeneralRe: Function out of scope Pin
hrishiS8-Sep-09 2:09
hrishiS8-Sep-09 2:09 
AnswerRe: Function out of scope [modified] Pin
Cedric Moonen8-Sep-09 1:17
Cedric Moonen8-Sep-09 1:17 
GeneralRe: Function out of scope Pin
Stuart Dootson8-Sep-09 3:52
professionalStuart Dootson8-Sep-09 3:52 
GeneralRe: Function out of scope Pin
Cedric Moonen8-Sep-09 3:55
Cedric Moonen8-Sep-09 3:55 
GeneralRe: Function out of scope Pin
N a v a n e e t h8-Sep-09 4:22
N a v a n e e t h8-Sep-09 4:22 
GeneralRe: Function out of scope Pin
Joe Woodbury8-Sep-09 5:29
professionalJoe Woodbury8-Sep-09 5:29 
AnswerRe: Function out of scope Pin
Stuart Dootson8-Sep-09 3:55
professionalStuart Dootson8-Sep-09 3:55 
GeneralRe: Function out of scope Pin
Richard MacCutchan8-Sep-09 5:10
mveRichard MacCutchan8-Sep-09 5:10 
GeneralRe: Function out of scope Pin
Stuart Dootson8-Sep-09 5:43
professionalStuart Dootson8-Sep-09 5:43 
GeneralRe: Function out of scope Pin
Richard MacCutchan8-Sep-09 11:44
mveRichard MacCutchan8-Sep-09 11:44 
GeneralRe: Function out of scope Pin
Moak9-Sep-09 1:21
Moak9-Sep-09 1:21 
QuestionHow to change the font of a button ? Pin
ilgale8-Sep-09 0:52
ilgale8-Sep-09 0:52 
AnswerRe: How to change the font of a button ? Pin
Michael Schubert8-Sep-09 0:58
Michael Schubert8-Sep-09 0:58 
QuestionEM_SETTABSTOPS and tab width in pixels? Pin
Moak8-Sep-09 0:42
Moak8-Sep-09 0:42 
AnswerRe: EM_SETTABSTOPS and tab width in pixels? Pin
Moak8-Sep-09 4:46
Moak8-Sep-09 4:46 
AnswerRe: EM_SETTABSTOPS and tab width in pixels? Pin
ItaniumX29-Jan-10 7:34
ItaniumX29-Jan-10 7:34 

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.