Click here to Skip to main content
15,887,464 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: excel automation Pin
Franck Paquier23-Sep-09 22:17
Franck Paquier23-Sep-09 22:17 
GeneralRe: excel automation Pin
prithaa30-Sep-09 22:38
prithaa30-Sep-09 22:38 
QuestionHandle Dialog in VB Script Pin
Bedke23-Sep-09 18:30
Bedke23-Sep-09 18:30 
QuestionTo launch the "Speakers Properties" Pin
Maxwell Chen23-Sep-09 18:05
Maxwell Chen23-Sep-09 18:05 
AnswerRe: To launch the "Speakers Properties" Pin
Maxwell Chen23-Sep-09 18:35
Maxwell Chen23-Sep-09 18:35 
AnswerRe: To launch the "Speakers Properties" Pin
kilt24-Sep-09 7:03
kilt24-Sep-09 7:03 
QuestionMemory mapped file I/O Vs Disk I/O Pin
vipin_nvk23-Sep-09 18:05
vipin_nvk23-Sep-09 18:05 
AnswerRe: Memory mapped file I/O Vs Disk I/O Pin
Stuart Dootson24-Sep-09 6:23
professionalStuart Dootson24-Sep-09 6:23 
When reading the complete contents of a file, possibly not. However, with a big file, if you only want to read separate parts of the file, memory mapping gives you the convenience of memory-style accesses, and will only read the pages of the file you touch (whatever the page size of the VM system is). Consider if you wanted to read the first and last bytes of that file - you could map the whole file, read the first byte and the last byte and the disk IO system would have read two pages (2 x 4kB?). And you read those bytes through pointers.

Another advantage - memory mapped IO sections can be defined using pointers (pointer to start, pointer to end), which are random-access iterators as far as the STL is concerned. File iterators in STL are forward-only iterators.

I generally prefer to use memory-mapping when possible, as it's (IMO) easier to manage and use, mainly because of the STL related iterator thing.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

Questiona bother about windows service Pin
jinjiashan23-Sep-09 16:16
jinjiashan23-Sep-09 16:16 
AnswerRe: a bother about windows service Pin
jinjiashan23-Sep-09 21:50
jinjiashan23-Sep-09 21:50 
GeneralRe: a bother about windows service Pin
jinjiashan24-Sep-09 0:04
jinjiashan24-Sep-09 0:04 
AnswerRe: a bother about windows service Pin
Rolf Kristensen26-Sep-09 7:49
Rolf Kristensen26-Sep-09 7:49 
GeneralRe: a bother about windows service Pin
jinjiashan27-Sep-09 13:29
jinjiashan27-Sep-09 13:29 
QuestionProblem with initializing Main args! Pin
Largo6523-Sep-09 12:58
Largo6523-Sep-09 12:58 
AnswerRe: Problem with initializing Main args! Pin
Game-point23-Sep-09 18:40
Game-point23-Sep-09 18:40 
AnswerRe: Problem with initializing Main args! Pin
Saurabh.Garg23-Sep-09 18:56
Saurabh.Garg23-Sep-09 18:56 
AnswerRe: Problem with initializing Main args! Pin
«_Superman_»23-Sep-09 19:23
professional«_Superman_»23-Sep-09 19:23 
AnswerRe: Problem with initializing Main args! Pin
Richard MacCutchan23-Sep-09 22:32
mveRichard MacCutchan23-Sep-09 22:32 
QuestionC++ with in-code Assembly Pin
paolosh23-Sep-09 10:22
paolosh23-Sep-09 10:22 
AnswerRe: C++ with in-code Assembly Pin
ied23-Sep-09 10:28
ied23-Sep-09 10:28 
AnswerRe: C++ with in-code Assembly Pin
Rick York23-Sep-09 10:37
mveRick York23-Sep-09 10:37 
QuestionLoadImage fails to locate file Pin
raich23-Sep-09 8:32
raich23-Sep-09 8:32 
QuestionRe: LoadImage fails to locate file Pin
David Crow23-Sep-09 9:03
David Crow23-Sep-09 9:03 
AnswerRe: LoadImage fails to locate file Pin
raich23-Sep-09 9:42
raich23-Sep-09 9:42 
QuestionRe: LoadImage fails to locate file Pin
David Crow23-Sep-09 10:00
David Crow23-Sep-09 10:00 

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.