Click here to Skip to main content
16,009,429 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with reading a file Pin
Rakesh53-Sep-09 17:43
Rakesh53-Sep-09 17:43 
AnswerRe: Problem with reading a file Pin
«_Superman_»3-Sep-09 17:50
professional«_Superman_»3-Sep-09 17:50 
AnswerRe: Problem with reading a file Pin
Cedric Moonen3-Sep-09 20:14
Cedric Moonen3-Sep-09 20:14 
AnswerRe: Problem with reading a file Pin
shuzh3-Sep-09 20:52
shuzh3-Sep-09 20:52 
GeneralRe: Problem with reading a file Pin
Michael Schubert3-Sep-09 21:19
Michael Schubert3-Sep-09 21:19 
AnswerRe: Problem with reading a file Pin
Michael Schubert3-Sep-09 21:24
Michael Schubert3-Sep-09 21:24 
AnswerRe: Problem with reading a file Pin
David Crow4-Sep-09 2:56
David Crow4-Sep-09 2:56 
AnswerRe: Problem with reading a file Pin
kakan4-Sep-09 3:08
professionalkakan4-Sep-09 3:08 
Just a thought. But here goes:
You seems to read the file as Unicode, that way every character consists of two bytes in the file.
If docfile.getlength() reports the file size in bytes, then you get your 50%.
An example, suppose the file is 50 bytes.
docfile.getlength() returns 50.
But you can read 25 Unicode characters from it.
Makes sense?

Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

QuestionUpdating UI from thread Pin
_80863-Sep-09 16:54
_80863-Sep-09 16:54 
AnswerRe: Updating UI from thread Pin
«_Superman_»3-Sep-09 17:20
professional«_Superman_»3-Sep-09 17:20 
GeneralRe: Updating UI from thread Pin
_80863-Sep-09 17:39
_80863-Sep-09 17:39 
GeneralRe: Updating UI from thread Pin
«_Superman_»3-Sep-09 17:45
professional«_Superman_»3-Sep-09 17:45 
AnswerRe: Updating UI from thread Pin
Cedric Moonen3-Sep-09 20:03
Cedric Moonen3-Sep-09 20:03 
AnswerRe: Updating UI from thread Pin
Rajesh R Subramanian3-Sep-09 20:16
professionalRajesh R Subramanian3-Sep-09 20:16 
Questionbutton(visible&Enable) but CANNOT be pressed Pin
fitatc3-Sep-09 14:48
fitatc3-Sep-09 14:48 
AnswerRe: button(visible&Enable) but CANNOT be pressed Pin
Eric Haddan4-Sep-09 4:48
Eric Haddan4-Sep-09 4:48 
GeneralRe: button(visible&Enable) but CANNOT be pressed Pin
fitatc6-Sep-09 18:20
fitatc6-Sep-09 18:20 
Questionvector question Pin
RobJones3-Sep-09 11:50
RobJones3-Sep-09 11:50 
AnswerRe: vector question Pin
Nemanja Trifunovic3-Sep-09 12:08
Nemanja Trifunovic3-Sep-09 12:08 
GeneralRe: vector question Pin
RobJones3-Sep-09 12:12
RobJones3-Sep-09 12:12 
QuestionTemplates... they are nasty!! Pin
o.kauert3-Sep-09 11:43
o.kauert3-Sep-09 11:43 
AnswerRe: Templates... they are nasty!! Pin
Nemanja Trifunovic3-Sep-09 12:20
Nemanja Trifunovic3-Sep-09 12:20 
AnswerRe: Templates... they are nasty!! [modified] Pin
Chris Losinger3-Sep-09 16:15
professionalChris Losinger3-Sep-09 16:15 
GeneralRe: Templates... they are nasty!! Pin
«_Superman_»3-Sep-09 17:41
professional«_Superman_»3-Sep-09 17:41 
GeneralRe: Templates... they are nasty!! Pin
o.kauert3-Sep-09 23:14
o.kauert3-Sep-09 23:14 

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.