Click here to Skip to main content
15,920,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 21:54
toxcct6-Apr-05 21:54 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 21:57
Cedric Moonen6-Apr-05 21:57 
GeneralRe: ifstream operator>> Pin
NewbieStats6-Apr-05 22:00
NewbieStats6-Apr-05 22:00 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 22:07
Cedric Moonen6-Apr-05 22:07 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 22:00
toxcct6-Apr-05 22:00 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 22:05
Cedric Moonen6-Apr-05 22:05 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 22:13
toxcct6-Apr-05 22:13 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 22:18
Cedric Moonen6-Apr-05 22:18 
Yes, that what I wanted to do but I don't want to check for eof between each member variables (and thus adding this code between each line... a little bit heavy). I think I will read all variables (even if eof is reached in between) and only check for errors at the end of the function.

So to resume, is this flag raised when the last byte of data is read or when you try to read after the last byte ? In the first case, I will throw an exception when I will read the last structure in file even if it completely read (not goooood Smile | :) ). When you try to read data after the eof flag has been raised, is the failed bit raised ? If yes, then I can just check for fail() and raise an exception when it's true.

GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 22:37
toxcct6-Apr-05 22:37 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 22:47
Cedric Moonen6-Apr-05 22:47 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 21:33
toxcct6-Apr-05 21:33 
QuestionHow can I setup remote debug mode in VC.net? Pin
willyfu6-Apr-05 21:20
willyfu6-Apr-05 21:20 
AnswerRe: How can I setup remote debug mode in VC.net? Pin
Alexander M.,7-Apr-05 5:03
Alexander M.,7-Apr-05 5:03 
GeneralCoding Text... Pin
NewbieStats6-Apr-05 21:10
NewbieStats6-Apr-05 21:10 
GeneralRe: Coding Text... Pin
ThatsAlok6-Apr-05 21:18
ThatsAlok6-Apr-05 21:18 
GeneralRe: Coding Text... Pin
NewbieStats6-Apr-05 21:27
NewbieStats6-Apr-05 21:27 
GeneralRe: Coding Text... Pin
ThatsAlok6-Apr-05 22:01
ThatsAlok6-Apr-05 22:01 
GeneralRe: Coding Text... Pin
NewbieStats6-Apr-05 22:25
NewbieStats6-Apr-05 22:25 
QuestionHow to create more threads using CreateThread function? Pin
Amarelia6-Apr-05 20:18
Amarelia6-Apr-05 20:18 
AnswerRe: How to create more threads using CreateThread function? Pin
ThatsAlok6-Apr-05 20:36
ThatsAlok6-Apr-05 20:36 
GeneralRe: How to create more threads using CreateThread function? Pin
David Crow7-Apr-05 2:40
David Crow7-Apr-05 2:40 
GeneralRe: How to create more threads using CreateThread function? Pin
ThatsAlok7-Apr-05 17:50
ThatsAlok7-Apr-05 17:50 
AnswerRe: How to create more threads using CreateThread function? Pin
RChin6-Apr-05 23:31
RChin6-Apr-05 23:31 
GeneralRe: How to create more threads using CreateThread function? Pin
Anonymous7-Apr-05 3:16
Anonymous7-Apr-05 3:16 
AnswerRe: How to create more threads using CreateThread function? Pin
David Crow7-Apr-05 2:51
David Crow7-Apr-05 2:51 

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.