Click here to Skip to main content
15,915,053 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setting printer options from C++ Pin
Perspx1-Sep-08 4:36
Perspx1-Sep-08 4:36 
AnswerRe: Setting printer options from C++ Pin
Hamid_RT31-Aug-08 18:09
Hamid_RT31-Aug-08 18:09 
Questionset limit text for combobox Pin
hariakuthota31-Aug-08 8:12
hariakuthota31-Aug-08 8:12 
AnswerRe: set limit text for combobox Pin
Perspx31-Aug-08 8:30
Perspx31-Aug-08 8:30 
QuestionTimerQueueTimers..A question.. Pin
montiee31-Aug-08 5:53
montiee31-Aug-08 5:53 
AnswerRe: TimerQueueTimers..A question.. Pin
Mark Salsbery31-Aug-08 7:12
Mark Salsbery31-Aug-08 7:12 
QuestionRe: TimerQueueTimers..A question.. [modified] Pin
montiee1-Sep-08 8:39
montiee1-Sep-08 8:39 
QuestionCode efficiency Pin
Evgeni5731-Aug-08 5:26
Evgeni5731-Aug-08 5:26 
Hi all


I need to read some data from binary file that it's structure like the following:
record size, record...
Reading the size, then the record etc. not efficiently.

Which of the ways more efficient:

1)Reading to fixed size buffer block of data, and any time the part of the record was cut I'm using fseek and rewind position indicator associated with the stream backward.
Example: I have 16K buffer, and each record has arount 2.5K, so I process about 6 records, then calling fssek(fp, total_processed_bytes, SEEK_SET);

2)Doing the same with two buffers but without fseek calls.

3)Some other idea?


Thanks.
AnswerRe: Code efficiency Pin
Robert.C.Cartaino31-Aug-08 7:32
Robert.C.Cartaino31-Aug-08 7:32 
AnswerRe: Code efficiency Pin
Mark Salsbery31-Aug-08 7:35
Mark Salsbery31-Aug-08 7:35 
GeneralRe: Code efficiency Pin
Evgeni5731-Aug-08 22:17
Evgeni5731-Aug-08 22:17 
GeneralRe: Code efficiency Pin
Mark Salsbery1-Sep-08 7:58
Mark Salsbery1-Sep-08 7:58 
Questionc++ function help Pin
anjoz96631-Aug-08 4:07
anjoz96631-Aug-08 4:07 
AnswerRe: c++ function help Pin
Cedric Moonen31-Aug-08 5:42
Cedric Moonen31-Aug-08 5:42 
QuestionSTL exception Pin
followait30-Aug-08 23:04
followait30-Aug-08 23:04 
AnswerRe: STL exception Pin
Mark Salsbery31-Aug-08 7:47
Mark Salsbery31-Aug-08 7:47 
GeneralRe: STL exception Pin
followait31-Aug-08 18:00
followait31-Aug-08 18:00 
Questionifstream question Pin
followait30-Aug-08 16:40
followait30-Aug-08 16:40 
QuestionInvert ARGB [modified] Pin
bob1697230-Aug-08 7:12
bob1697230-Aug-08 7:12 
AnswerRe: Invert ARGB Pin
Mark Salsbery30-Aug-08 8:04
Mark Salsbery30-Aug-08 8:04 
GeneralRe: Invert ARGB Pin
bob1697230-Aug-08 11:52
bob1697230-Aug-08 11:52 
GeneralRe: Invert ARGB Pin
Mark Salsbery30-Aug-08 11:58
Mark Salsbery30-Aug-08 11:58 
QuestionLooking for C++ CWnd equivalent of C#'s Control.Invoke, Control.IsInvokeRequired Pin
Ohad Maishar30-Aug-08 6:13
Ohad Maishar30-Aug-08 6:13 
AnswerRe: Looking for C++ CWnd equivalent of C#'s Control.Invoke, Control.IsInvokeRequired Pin
Mark Salsbery30-Aug-08 6:46
Mark Salsbery30-Aug-08 6:46 
Questionopening network connections Pin
VCProgrammer30-Aug-08 1:50
VCProgrammer30-Aug-08 1:50 

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.