Click here to Skip to main content
15,894,291 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionCan I use std::tr1::share_ptr in VS2008 SP1 to replace auto_ptr in my project? Pin
hawkgao012922-Jul-09 15:53
hawkgao012922-Jul-09 15:53 
AnswerRe: Can I use std::tr1::share_ptr in VS2008 SP1 to replace auto_ptr in my project? Pin
Stuart Dootson22-Jul-09 18:58
professionalStuart Dootson22-Jul-09 18:58 
GeneralRe: Can I use std::tr1::share_ptr in VS2008 SP1 to replace auto_ptr in my project? Pin
hawkgao012922-Jul-09 20:21
hawkgao012922-Jul-09 20:21 
GeneralRe: Can I use std::tr1::share_ptr in VS2008 SP1 to replace auto_ptr in my project? Pin
Stuart Dootson22-Jul-09 21:34
professionalStuart Dootson22-Jul-09 21:34 
GeneralRe: Can I use std::tr1::share_ptr in VS2008 SP1 to replace auto_ptr in my project? Pin
hawkgao012922-Jul-09 22:03
hawkgao012922-Jul-09 22:03 
GeneralRe: Can I use std::tr1::share_ptr in VS2008 SP1 to replace auto_ptr in my project? Pin
hawkgao012922-Jul-09 22:13
hawkgao012922-Jul-09 22:13 
GeneralRe: Can I use std::tr1::share_ptr in VS2008 SP1 to replace auto_ptr in my project? Pin
Stuart Dootson22-Jul-09 22:18
professionalStuart Dootson22-Jul-09 22:18 
Questionifstream read() logic? Pin
John R. Shaw13-Jul-09 9:32
John R. Shaw13-Jul-09 9:32 
I have been wondering what the logic was behind the fact that the ifstream read method sets the eofbit as well as the failbit on a read failure, but can find no explanation. I can see that if you are just checking for EOF in a loop then setting the eofbit will stop any future reading, but this also hides the cause of the error. That is if we have not actually reached the end of the file, then there is nothing to tell us this fact. If you try to read a 25k file and the codecvt do_in method returns error after reading only half a line of text, then both bits are set and there is nothing to tell us that we have not just read the entire file. I can easily hack my way around the problem, but the fact that I would have to do that is ridiculous.

Does anyone have an idea or explanation for this behavior?

INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

AnswerRe: ifstream read() logic? Pin
Stuart Dootson13-Jul-09 13:10
professionalStuart Dootson13-Jul-09 13:10 
GeneralRe: ifstream read() logic? Pin
John R. Shaw13-Jul-09 19:38
John R. Shaw13-Jul-09 19:38 
GeneralRe: ifstream read() logic? Pin
Stuart Dootson13-Jul-09 21:19
professionalStuart Dootson13-Jul-09 21:19 
GeneralRe: ifstream read() logic? [modified] Pin
John R. Shaw14-Jul-09 7:11
John R. Shaw14-Jul-09 7:11 
QuestionChevron effect not showing Icon in IE6 (Windows XP) Pin
am 200913-Jul-09 5:24
am 200913-Jul-09 5:24 
AnswerRe: Chevron effect not showing Icon in IE6 (Windows XP) Pin
Gerald Schwab10-Aug-09 18:29
Gerald Schwab10-Aug-09 18:29 
GeneralRe: Chevron effect not showing Icon in IE6 (Windows XP) Pin
am 20094-Nov-09 22:25
am 20094-Nov-09 22:25 
QuestionSingle instance setting for out-of-proc COM server? Pin
WayneS13-Jul-09 3:25
WayneS13-Jul-09 3:25 
QuestionHelp,About Picture Stock Property in ATL Pin
Pearson_Bee12-Jul-09 21:01
Pearson_Bee12-Jul-09 21:01 
QuestionAnother 8001010e question! Pin
Kannan Ramanathan11-Jul-09 7:13
Kannan Ramanathan11-Jul-09 7:13 
AnswerRe: Another 8001010e question! Pin
Stuart Dootson11-Jul-09 7:30
professionalStuart Dootson11-Jul-09 7:30 
GeneralRe: Another 8001010e question! Pin
Kannan Ramanathan11-Jul-09 7:41
Kannan Ramanathan11-Jul-09 7:41 
GeneralRe: Another 8001010e question! Pin
Stuart Dootson11-Jul-09 7:52
professionalStuart Dootson11-Jul-09 7:52 
GeneralRe: Another 8001010e question! Pin
Kannan Ramanathan11-Jul-09 18:23
Kannan Ramanathan11-Jul-09 18:23 
GeneralRe: Another 8001010e question! Pin
Stuart Dootson11-Jul-09 23:37
professionalStuart Dootson11-Jul-09 23:37 
GeneralRe: Another 8001010e question! Pin
Kannan Ramanathan11-Jul-09 23:43
Kannan Ramanathan11-Jul-09 23:43 
GeneralRe: Another 8001010e question! Pin
Stuart Dootson11-Jul-09 23:47
professionalStuart Dootson11-Jul-09 23: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.