Click here to Skip to main content
15,899,124 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Documentation Pin
Sarath C23-Jun-06 23:06
Sarath C23-Jun-06 23:06 
GeneralRe: Documentation Pin
MozhdehQeraati24-Jun-06 2:14
MozhdehQeraati24-Jun-06 2:14 
GeneralRe: Documentation Pin
Kevin McFarlane24-Jun-06 5:45
Kevin McFarlane24-Jun-06 5:45 
GeneralRe: Documentation Pin
MozhdehQeraati24-Jun-06 22:00
MozhdehQeraati24-Jun-06 22:00 
GeneralRe: Documentation Pin
Kevin McFarlane25-Jun-06 9:03
Kevin McFarlane25-Jun-06 9:03 
Question.h and .cpp files Pin
Moujan23-Jun-06 17:11
Moujan23-Jun-06 17:11 
AnswerRe: .h and .cpp files Pin
John M. Drescher23-Jun-06 17:59
John M. Drescher23-Jun-06 17:59 
GeneralRe: .h and .cpp files Pin
Moujan23-Jun-06 20:26
Moujan23-Jun-06 20:26 
GeneralRe: .h and .cpp files Pin
ovidiucucu25-Jun-06 2:36
ovidiucucu25-Jun-06 2:36 
QuestionCRecordset problem Pin
moodsey21123-Jun-06 16:17
moodsey21123-Jun-06 16:17 
AnswerRe: CRecordset problem Pin
ovidiucucu24-Jun-06 7:16
ovidiucucu24-Jun-06 7:16 
GeneralRe: CRecordset problem Pin
moodsey21124-Jun-06 14:11
moodsey21124-Jun-06 14:11 
GeneralRe: CRecordset problem Pin
ovidiucucu29-Jun-06 2:51
ovidiucucu29-Jun-06 2:51 
Questionsource of viewport [modified] Pin
hoa_nguyen23-Jun-06 15:15
hoa_nguyen23-Jun-06 15:15 
AnswerRe: source of viewport Pin
Hamid_RT23-Jun-06 21:12
Hamid_RT23-Jun-06 21:12 
QuestionHow to measure memory consumption? Pin
nysubmarine23-Jun-06 10:47
nysubmarine23-Jun-06 10:47 
AnswerRe: How to measure memory consumption? Pin
Jun Du23-Jun-06 11:12
Jun Du23-Jun-06 11:12 
QuestionLink errors using std::vector Pin
BuckBrown23-Jun-06 10:22
BuckBrown23-Jun-06 10:22 
AnswerRe: Link errors using std::vector Pin
Neville Franks23-Jun-06 13:27
Neville Franks23-Jun-06 13:27 
QuestionAPI needed Pin
act_x23-Jun-06 9:57
act_x23-Jun-06 9:57 
AnswerRe: API needed Pin
cje23-Jun-06 9:59
cje23-Jun-06 9:59 
AnswerRe: API needed Pin
David Crow23-Jun-06 10:00
David Crow23-Jun-06 10:00 
AnswerRe: API needed Pin
act_x23-Jun-06 10:05
act_x23-Jun-06 10:05 
AnswerRe: API needed Pin
Hamid_RT23-Jun-06 21:08
Hamid_RT23-Jun-06 21:08 
QuestionBinary File IO Pin
Jumpin' Jeff23-Jun-06 9:06
Jumpin' Jeff23-Jun-06 9:06 
I'm having trouble grasping Binary file I/O.

I am trying to read back a binary file that includes the following example...

char type[9]="File Type"
short MajorVersion = 1
short MinorVersion = 0

Using most methods found, I can read "File Type" but it's got garbage appended to it, so I cannot compare with a known type.

Also, I'm having trouble going beyond that. Meaning, I cannot access the version shorts.

The examples I've come across doesn't go into any depth about multiple types, or how to retrieve multiple items from a single buffer read.

Do I need to flush the buffer, and reposition my pointer?

What's the best way about getting this information out of my file?

Can someone give me a quick example of how to retrieve this data, and what method is most efficient?

Jeff

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.