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

C / C++ / MFC

 
GeneralRe: read non-text files Pin
Mazdak9-May-03 4:52
Mazdak9-May-03 4:52 
GeneralRe: read non-text files Pin
David Crow9-May-03 5:03
David Crow9-May-03 5:03 
GeneralRe: read non-text files Pin
Mazdak9-May-03 5:19
Mazdak9-May-03 5:19 
GeneralRe: read non-text files Pin
David Crow9-May-03 5:27
David Crow9-May-03 5:27 
GeneralRe: read non-text files Pin
Mazdak9-May-03 6:14
Mazdak9-May-03 6:14 
GeneralRe: read non-text files Pin
jhwurmbach9-May-03 5:00
jhwurmbach9-May-03 5:00 
GeneralRe: read non-text files Pin
Mazdak9-May-03 5:18
Mazdak9-May-03 5:18 
GeneralRe: read non-text files Pin
Mike Dimmick9-May-03 5:06
Mike Dimmick9-May-03 5:06 
Don't use fopen() or the other C runtime file functions from <stdio.h> for reading binary data. They're only designed for use with text files.

Under Windows, use CreateFile() to open a file and ReadFile() to read data from it. You can also use the _open() function and _read() to read from the file, which may be more portable (the POSIX binary functions are named open() and read()).

--
Mike Dimmick

GeneralRe: read non-text files Pin
David Crow9-May-03 5:09
David Crow9-May-03 5:09 
GeneralRe: read non-text files Pin
Rickard Andersson209-May-03 6:21
Rickard Andersson209-May-03 6:21 
GeneralRe: read non-text files Pin
Mazdak9-May-03 6:55
Mazdak9-May-03 6:55 
GeneralRe: read non-text files Pin
David Crow9-May-03 7:20
David Crow9-May-03 7:20 
GeneralRe: read non-text files Pin
David Crow9-May-03 7:11
David Crow9-May-03 7:11 
GeneralRe: read non-text files Pin
Rickard Andersson2010-May-03 3:46
Rickard Andersson2010-May-03 3:46 
GeneralRe: read non-text files Pin
Daniel Strigl9-May-03 7:49
Daniel Strigl9-May-03 7:49 
Generalread non-text files Pin
Mazdak9-May-03 4:43
Mazdak9-May-03 4:43 
GeneralAccess to database using CDatabas & CRecordset Pin
Ghasrfakhri9-May-03 4:08
Ghasrfakhri9-May-03 4:08 
Generalreport -printing Pin
jaclus9-May-03 4:07
jaclus9-May-03 4:07 
QuestionHow to change the color of a scroll bar's appearance? Pin
stanley guan9-May-03 4:04
stanley guan9-May-03 4:04 
AnswerRe: How to change the color of a scroll bar's appearance? Pin
Chris Richardson9-May-03 6:46
Chris Richardson9-May-03 6:46 
GeneralRe: How to change the color of a scroll bar's appearance? Pin
stanley guan10-May-03 18:44
stanley guan10-May-03 18:44 
Generalfloat window Pin
novachen9-May-03 4:00
novachen9-May-03 4:00 
GeneralRe: float window Pin
jhaga9-May-03 10:05
professionaljhaga9-May-03 10:05 
GeneralIE's popup menu Pin
novachen9-May-03 3:57
novachen9-May-03 3:57 
GeneralRe: IE's popup menu Pin
Chris Richardson9-May-03 6:49
Chris Richardson9-May-03 6:49 

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.