Click here to Skip to main content
15,913,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionExit code 136? Pin
Jason Henderson8-Mar-03 10:22
Jason Henderson8-Mar-03 10:22 
GeneralMessage routing Pin
AnTri8-Mar-03 6:57
AnTri8-Mar-03 6:57 
GeneralRe: Message routing Pin
Kuniva8-Mar-03 7:25
Kuniva8-Mar-03 7:25 
Generalfclose() error Pin
Kuniva8-Mar-03 6:00
Kuniva8-Mar-03 6:00 
GeneralRe: fclose() error Pin
Chris Losinger8-Mar-03 6:43
professionalChris Losinger8-Mar-03 6:43 
GeneralRe: fclose() error Pin
Kuniva8-Mar-03 7:16
Kuniva8-Mar-03 7:16 
GeneralRe: fclose() error Pin
Chris Losinger8-Mar-03 8:28
professionalChris Losinger8-Mar-03 8:28 
GeneralRe: fclose() error Pin
Kuniva8-Mar-03 7:42
Kuniva8-Mar-03 7:42 
WTF | :WTF: Unsure | :~ Eek! | :eek:
OO WAIT lol
if i make it id[1000] then it works without errors... hmm so i guess fscanf doesnt get the number of bytes to read from the variable passed, oops. Hmm strange..

But anyways, what i'm actually trying to do here is to read in a serialised file, but not entirely, just some sort of header with a constant length. Like for example these are the first 8 bytes and the matching ASCII thingies:
6E 70 66 00 05 00 00 00
n p f

so i would think fscanf would stop at the 00 no?? Geesh this is complicated, maybe there is another function i should use for this? (i don't want to use MFC) I tried fread() already but didnt know how to start reading from a certain position with that cause i thought it always just started at the beginning, or can i use fseek() for that as well??

Kuniva
--------------------------------------------

GeneralRe: fclose() error Pin
Tim Smith8-Mar-03 16:13
Tim Smith8-Mar-03 16:13 
GeneralRe: fclose() error Pin
Kuniva8-Mar-03 8:11
Kuniva8-Mar-03 8:11 
GeneralRe: fclose() error Pin
Abbas_Riazi8-Mar-03 18:04
professionalAbbas_Riazi8-Mar-03 18:04 
GeneralModifyStyle dynamically Pin
Gumball8-Mar-03 5:37
Gumball8-Mar-03 5:37 
GeneralSchool Project in C Pin
Claus Jobes8-Mar-03 4:58
Claus Jobes8-Mar-03 4:58 
GeneralRe: School Project in C Pin
dog_spawn8-Mar-03 6:58
dog_spawn8-Mar-03 6:58 
GeneralRe: School Project in C Pin
Claus Jobes8-Mar-03 7:05
Claus Jobes8-Mar-03 7:05 
GeneralRe: School Project in C Pin
yaname8-Mar-03 12:38
yaname8-Mar-03 12:38 
GeneralRe: School Project in C Pin
Claus Jobes8-Mar-03 15:06
Claus Jobes8-Mar-03 15:06 
QuestionHow to detect that cd rom drive is opened? Pin
Mukkie8-Mar-03 3:39
Mukkie8-Mar-03 3:39 
GeneralCProgressBar Pin
wavewave8-Mar-03 1:19
wavewave8-Mar-03 1:19 
GeneralRe: CProgressBar Pin
AnTri8-Mar-03 7:11
AnTri8-Mar-03 7:11 
GeneralRe: CProgressBar Pin
wavewave8-Mar-03 23:28
wavewave8-Mar-03 23:28 
GeneralRe: CProgressBar Pin
AnTri9-Mar-03 0:39
AnTri9-Mar-03 0:39 
GeneralRe: CProgressBar Pin
AnTri9-Mar-03 0:40
AnTri9-Mar-03 0:40 
GeneralRe: CProgressBar Pin
wavewave9-Mar-03 2:08
wavewave9-Mar-03 2:08 
GeneralRe: CProgressBar Pin
AnTri9-Mar-03 2:23
AnTri9-Mar-03 2:23 

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.