Click here to Skip to main content
15,887,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to let VS 6.0 to compile unicode resource file? Pin
transoft10-Feb-06 6:15
transoft10-Feb-06 6:15 
QuestionCode snippets for C++ in VS 8? Pin
gosh9-Feb-06 14:01
gosh9-Feb-06 14:01 
AnswerRe: Code snippets for C++ in VS 8? Pin
S Douglas9-Feb-06 18:43
professionalS Douglas9-Feb-06 18:43 
QuestionReinitializing a strstream Pin
PJ Arends9-Feb-06 13:45
professionalPJ Arends9-Feb-06 13:45 
AnswerRe: Reinitializing a strstream Pin
_anil_9-Feb-06 14:07
_anil_9-Feb-06 14:07 
GeneralRe: Reinitializing a strstream Pin
PJ Arends9-Feb-06 14:20
professionalPJ Arends9-Feb-06 14:20 
GeneralRe: Reinitializing a strstream Pin
_anil_9-Feb-06 14:35
_anil_9-Feb-06 14:35 
GeneralRe: Reinitializing a strstream Pin
PJ Arends9-Feb-06 15:00
professionalPJ Arends9-Feb-06 15:00 
cout << stream.str() << endl;
This line is added in the loop for debugging only. and the output is a series of identical lines "%%1". I also looked up the value in the debugger, used the second ostrstream c'tor where you can supply a char * buffer to be used as the stream and watched that buffer, etc. All have the same effect.

I am using VC6 SP6 with the Feb 2001 SDK if that makes any difference. I tried the code with VC7.0 but that was an even worse experience than with VC6, calling stream.str() results in an access violation at address 0x00000000.

Christian Graus is always saying how streams are the best thing ever, but I am having serious doubts about thatSigh | :sigh:



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04

"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05

Within you lies the power for good - Use it!
GeneralRe: Reinitializing a strstream Pin
_anil_9-Feb-06 15:34
_anil_9-Feb-06 15:34 
GeneralRe: Reinitializing a strstream Pin
PJ Arends9-Feb-06 15:42
professionalPJ Arends9-Feb-06 15:42 
GeneralRe: Reinitializing a strstream Pin
_anil_9-Feb-06 15:56
_anil_9-Feb-06 15:56 
GeneralRe: Reinitializing a strstream Pin
PJ Arends9-Feb-06 16:15
professionalPJ Arends9-Feb-06 16:15 
GeneralGot it! Pin
PJ Arends9-Feb-06 15:53
professionalPJ Arends9-Feb-06 15:53 
AnswerRe: Reinitializing a strstream Pin
Bernhard9-Feb-06 19:51
Bernhard9-Feb-06 19:51 
QuestionHELP NEEDED HERE. PLEASE ANYONE!!!! Pin
jermzypeter9-Feb-06 13:00
jermzypeter9-Feb-06 13:00 
AnswerRe: HELP NEEDED HERE. PLEASE ANYONE!!!! Pin
George L. Jackson9-Feb-06 13:12
George L. Jackson9-Feb-06 13:12 
GeneralRe: HELP NEEDED HERE. PLEASE ANYONE!!!! Pin
jermzypeter9-Feb-06 13:18
jermzypeter9-Feb-06 13:18 
GeneralRe: HELP NEEDED HERE. PLEASE ANYONE!!!! Pin
George L. Jackson9-Feb-06 13:25
George L. Jackson9-Feb-06 13:25 
GeneralRe: HELP NEEDED HERE. PLEASE ANYONE!!!! Pin
jermzypeter9-Feb-06 13:33
jermzypeter9-Feb-06 13:33 
GeneralRe: HELP NEEDED HERE. PLEASE ANYONE!!!! Pin
Lord Kixdemp9-Feb-06 13:37
Lord Kixdemp9-Feb-06 13:37 
GeneralRe: HELP NEEDED HERE. PLEASE ANYONE!!!! Pin
George L. Jackson9-Feb-06 13:44
George L. Jackson9-Feb-06 13:44 
GeneralRe: HELP NEEDED HERE. PLEASE ANYONE!!!! Pin
jermzypeter9-Feb-06 13:52
jermzypeter9-Feb-06 13:52 
GeneralRe: HELP NEEDED HERE. PLEASE ANYONE!!!! Pin
George L. Jackson9-Feb-06 14:09
George L. Jackson9-Feb-06 14:09 
GeneralRe: HELP NEEDED HERE. PLEASE ANYONE!!!! Pin
jermzypeter9-Feb-06 14:24
jermzypeter9-Feb-06 14:24 
GeneralRe: HELP NEEDED HERE. PLEASE ANYONE!!!! Pin
George L. Jackson9-Feb-06 15:00
George L. Jackson9-Feb-06 15: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.