Click here to Skip to main content
16,005,389 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSeeking in Large Files Pin
RichardS2-Jun-05 23:00
RichardS2-Jun-05 23:00 
GeneralRe: Seeking in Large Files Pin
Koms Bomb2-Jun-05 23:06
Koms Bomb2-Jun-05 23:06 
GeneralRe: Seeking in Large Files Pin
RichardS2-Jun-05 23:24
RichardS2-Jun-05 23:24 
GeneralRe: Seeking in Large Files Pin
Koms Bomb2-Jun-05 23:36
Koms Bomb2-Jun-05 23:36 
GeneralRe: Seeking in Large Files Pin
RichardS3-Jun-05 3:33
RichardS3-Jun-05 3:33 
GeneralRe: Seeking in Large Files Pin
David Crow3-Jun-05 3:40
David Crow3-Jun-05 3:40 
GeneralRe: Seeking in Large Files Pin
RichardS3-Jun-05 3:54
RichardS3-Jun-05 3:54 
GeneralRe: Seeking in Large Files Pin
Koms Bomb3-Jun-05 4:07
Koms Bomb3-Jun-05 4:07 
Another way,
GetFileSize to get the file size,
Then use SetFilePointer to 'seek' the file pointer, but you should only seek with zero offset from currect point, then that API will tell you where the currect pointer is.
Now compare that pointer with the file size...
So you don't need to read to the end of the file.
GeneralRe: Seeking in Large Files Pin
David Crow3-Jun-05 2:39
David Crow3-Jun-05 2:39 
GeneralRe: Seeking in Large Files Pin
RichardS3-Jun-05 3:36
RichardS3-Jun-05 3:36 
GeneralRe: Seeking in Large Files Pin
Blake Miller3-Jun-05 4:20
Blake Miller3-Jun-05 4:20 
GeneralStreamOut doesn't preserve CFM_LINK settings Pin
P. Gnana Prakash2-Jun-05 22:19
P. Gnana Prakash2-Jun-05 22:19 
QuestionWindows Media Player, GetVolume(), always return -600? Pin
Koms Bomb2-Jun-05 22:09
Koms Bomb2-Jun-05 22:09 
AnswerRe: Windows Media Player, GetVolume(), always return -600? Pin
P-Rex2-Jun-05 22:20
P-Rex2-Jun-05 22:20 
GeneralRe: Windows Media Player, GetVolume(), always return -600? Pin
Koms Bomb2-Jun-05 22:26
Koms Bomb2-Jun-05 22:26 
Generalbig endian to little endian Pin
GDavy2-Jun-05 22:09
GDavy2-Jun-05 22:09 
GeneralRe: big endian to little endian Pin
RichardS2-Jun-05 23:08
RichardS2-Jun-05 23:08 
GeneralRe: big endian to little endian Pin
GDavy2-Jun-05 23:39
GDavy2-Jun-05 23:39 
GeneralRe: big endian to little endian Pin
cmk5-Jun-05 12:37
cmk5-Jun-05 12:37 
QuestionHow to use EnumSystemLanguageGroups Pin
Hachaso2-Jun-05 21:27
Hachaso2-Jun-05 21:27 
AnswerRe: How to use EnumSystemLanguageGroups Pin
David Crow3-Jun-05 2:49
David Crow3-Jun-05 2:49 
GeneralRe: How to use EnumSystemLanguageGroups Pin
Hachaso6-Jun-05 21:00
Hachaso6-Jun-05 21:00 
GeneralRe: How to use EnumSystemLanguageGroups Pin
David Crow7-Jun-05 3:01
David Crow7-Jun-05 3:01 
GeneralRe: How to use EnumSystemLanguageGroups Pin
Hachaso7-Jun-05 21:34
Hachaso7-Jun-05 21:34 
GeneralRe: How to use EnumSystemLanguageGroups Pin
David Crow8-Jun-05 2:11
David Crow8-Jun-05 2:11 

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.