Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Strange private boolean member behaviour inside a public function (long question) Pin
Mark Salsbery8-Mar-07 12:14
Mark Salsbery8-Mar-07 12:14 
AnswerRe: Strange private boolean member behaviour inside a public function (long question) Pin
Joan M8-Mar-07 20:06
professionalJoan M8-Mar-07 20:06 
GeneralRe: Strange private boolean member behaviour inside a public function (long question) Pin
Mark Salsbery9-Mar-07 6:47
Mark Salsbery9-Mar-07 6:47 
GeneralRe: Strange private boolean member behaviour inside a public function (long question) Pin
Joan M9-Mar-07 7:00
professionalJoan M9-Mar-07 7:00 
Questionfread switching endianness on unformatted binary file Pin
regzim8-Mar-07 9:42
regzim8-Mar-07 9:42 
QuestionRe: fread switching endianness on unformatted binary file Pin
David Crow8-Mar-07 9:52
David Crow8-Mar-07 9:52 
AnswerRe: fread switching endianness on unformatted binary file Pin
Chris Losinger8-Mar-07 11:10
professionalChris Losinger8-Mar-07 11:10 
GeneralRe: fread switching endianness on unformatted binary file Pin
regzim8-Mar-07 19:01
regzim8-Mar-07 19:01 
Aw, crumbs. I meant to write in the fscanf version, but it really doesn't matter. My intended point Smile | :) was that every function (except fread) I have been able to find to read a file either reads it one byte at a time, or needs a delimiter, like a null or so. Sorry about that, David.
Chris- I still don't get it... does that mean anytime I try to put four bytes together into an int to print, it stores it backwards? Was your example intended as the way not to do it, or as the only way to do it? The four-byte 00 00 00 06 is translated as an integer, "6". I could just "is.ignore" the extra zeros, but what if those spaces are filled with hex code for a larger integer?

Thanks for your replies,
regzim
GeneralRe: fread switching endianness on unformatted binary file Pin
cp98768-Mar-07 19:27
cp98768-Mar-07 19:27 
GeneralRe: fread switching endianness on unformatted binary file Pin
Chris Losinger9-Mar-07 1:14
professionalChris Losinger9-Mar-07 1:14 
GeneralRe: fread switching endianness on unformatted binary file Pin
regzim9-Mar-07 8:16
regzim9-Mar-07 8:16 
GeneralRe: fread switching endianness on unformatted binary file Pin
Chris Losinger9-Mar-07 8:29
professionalChris Losinger9-Mar-07 8:29 
GeneralRe: fread switching endianness on unformatted binary file Pin
regzim9-Mar-07 9:21
regzim9-Mar-07 9:21 
GeneralRe: fread switching endianness on unformatted binary file Pin
regzim9-Mar-07 9:24
regzim9-Mar-07 9:24 
GeneralRe: fread switching endianness on unformatted binary file Pin
Chris Losinger9-Mar-07 9:33
professionalChris Losinger9-Mar-07 9:33 
QuestionComparing Values Pin
Herboren8-Mar-07 8:00
Herboren8-Mar-07 8:00 
AnswerRe: Comparing Values Pin
Maximilien8-Mar-07 8:03
Maximilien8-Mar-07 8:03 
QuestionRe: Comparing Values Pin
David Crow8-Mar-07 9:43
David Crow8-Mar-07 9:43 
AnswerRe: Comparing Values Pin
Herboren8-Mar-07 10:38
Herboren8-Mar-07 10:38 
QuestionRe: Comparing Values Pin
David Crow8-Mar-07 10:58
David Crow8-Mar-07 10:58 
AnswerRe: Comparing Values Pin
Herboren8-Mar-07 11:11
Herboren8-Mar-07 11:11 
GeneralRe: Comparing Values Pin
David Crow8-Mar-07 16:51
David Crow8-Mar-07 16:51 
GeneralRe: Comparing Values Pin
cedance8-Mar-07 18:10
cedance8-Mar-07 18:10 
GeneralRe: Comparing Values Pin
Herboren10-Mar-07 22:41
Herboren10-Mar-07 22:41 
AnswerRe: Comparing Values Pin
Stephen Hewitt8-Mar-07 12:15
Stephen Hewitt8-Mar-07 12:15 

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.