Click here to Skip to main content
15,905,963 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGet Serial HDD, encoding and save !!! Pin
RoyalVN6-Apr-05 22:30
RoyalVN6-Apr-05 22:30 
GeneralRe: Get Serial HDD, encoding and save !!! Pin
BadJerry7-Apr-05 1:18
BadJerry7-Apr-05 1:18 
GeneralInstallShield Pin
charu1236-Apr-05 22:19
charu1236-Apr-05 22:19 
Generalifstream operator>> Pin
Cedric Moonen6-Apr-05 21:27
Cedric Moonen6-Apr-05 21:27 
GeneralRe: ifstream operator>> Pin
NewbieStats6-Apr-05 21:31
NewbieStats6-Apr-05 21:31 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 21:39
Cedric Moonen6-Apr-05 21:39 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 21:45
toxcct6-Apr-05 21:45 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 21:55
Cedric Moonen6-Apr-05 21:55 
Yes I know that end of file is not an error. But for me it should be an error if it happen before the complete class has been read Smile | :) . It means that I try to load data from a file which is probably corrupted so I need to throw an exception. When is this flag raised by the way ? When the last byte of data is read or when you read past the last byte of data ? And what happens if you continue to read data even if the eof flag has been raised ?

A solution could be to read everything and just check at the end of the function if the complete class has been read...

Thanks for the suggestions
GeneralRe: ifstream operator>> Pin
NewbieStats6-Apr-05 21:45
NewbieStats6-Apr-05 21:45 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 21:51
Cedric Moonen6-Apr-05 21:51 
GeneralRe: ifstream operator>> Pin
NewbieStats6-Apr-05 21:53
NewbieStats6-Apr-05 21:53 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 22:02
Cedric Moonen6-Apr-05 22:02 
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 
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 

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.