Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionModeless Dialog Box Pin
suzie10020-Sep-05 14:19
suzie10020-Sep-05 14:19 
AnswerRe: Modeless Dialog Box Pin
Christian Graus20-Sep-05 14:23
protectorChristian Graus20-Sep-05 14:23 
AnswerRe: Modeless Dialog Box Pin
Shog920-Sep-05 18:14
sitebuilderShog920-Sep-05 18:14 
QuestionWriting/Reading Large files Pin
Jenleonard20-Sep-05 13:56
Jenleonard20-Sep-05 13:56 
AnswerRe: Writing/Reading Large files Pin
Christian Graus20-Sep-05 14:26
protectorChristian Graus20-Sep-05 14:26 
GeneralRe: Writing/Reading Large files Pin
Anonymous20-Sep-05 14:32
Anonymous20-Sep-05 14:32 
GeneralRe: Writing/Reading Large files Pin
Christian Graus20-Sep-05 14:38
protectorChristian Graus20-Sep-05 14:38 
AnswerRe: Writing/Reading Large files Pin
Axter20-Sep-05 19:06
professionalAxter20-Sep-05 19:06 
For reading files of this size, I don't recommend using C++ stream classes.
Instead, I recommend you use file mapping API functions, which will greatly increase the speed of your code.
For more info, look at your help files for the following API functions:
MapViewOfFile
CreateFileMapping
UnmapViewOfFile

For example code, check out the following links:
http://code.axter.com/MapFileToMemory.h
and
http://code.axter.com/mapfile2mem.cpp

The C++ stream classes are reliable, but not very speedy.
If you have a large file, and you need speed, they're not the best choice.

Top ten member of C++ Expert Exchange.
http://www.experts-exchange.com/Cplusplus
AnswerRe: Writing/Reading Large files Pin
kakan20-Sep-05 19:16
professionalkakan20-Sep-05 19:16 
GeneralRe: Writing/Reading Large files Pin
John R. Shaw21-Sep-05 0:31
John R. Shaw21-Sep-05 0:31 
GeneralRe: Writing/Reading Large files Pin
Jenleonard24-Sep-05 12:58
Jenleonard24-Sep-05 12:58 
GeneralRe: Writing/Reading Large files Pin
John R. Shaw25-Sep-05 20:10
John R. Shaw25-Sep-05 20:10 
QuestionDual Monitors - 1 needs to sleep Pin
gravits20-Sep-05 10:58
gravits20-Sep-05 10:58 
AnswerRe: Dual Monitors - 1 needs to sleep Pin
Neagoe Gabriel20-Sep-05 21:29
Neagoe Gabriel20-Sep-05 21:29 
QuestionHow to access environment variables? Pin
Member 227578520-Sep-05 10:24
Member 227578520-Sep-05 10:24 
AnswerRe: How to access environment variables? Pin
David Crow20-Sep-05 10:35
David Crow20-Sep-05 10:35 
GeneralRe: How to access environment variables? Pin
Member 227578520-Sep-05 10:39
Member 227578520-Sep-05 10:39 
GeneralRe: How to access environment variables? Pin
Graham Bradshaw20-Sep-05 12:22
Graham Bradshaw20-Sep-05 12:22 
Questionclosing main window, close IE window problem Pin
babyspidy20-Sep-05 9:59
babyspidy20-Sep-05 9:59 
AnswerRe: closing main window, close IE window problem Pin
Achim Klein20-Sep-05 21:17
Achim Klein20-Sep-05 21:17 
GeneralRe: closing main window, close IE window problem Pin
babyspidy20-Sep-05 21:31
babyspidy20-Sep-05 21:31 
Questioncrashes on close() Pin
bonosa20-Sep-05 9:57
bonosa20-Sep-05 9:57 
AnswerRe: crashes on close() Pin
David Crow20-Sep-05 10:32
David Crow20-Sep-05 10:32 
GeneralRe: crashes on close() Pin
bonosa20-Sep-05 10:45
bonosa20-Sep-05 10:45 
GeneralRe: crashes on close() Pin
bonosa20-Sep-05 11:03
bonosa20-Sep-05 11:03 

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.