Click here to Skip to main content
15,921,226 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Visual C++ Heap error Pin
David Crow19-Oct-05 3:43
David Crow19-Oct-05 3:43 
AnswerRe: Visual C++ Heap error Pin
Tam98765432119-Oct-05 8:38
Tam98765432119-Oct-05 8:38 
QuestionBool data type issue Pin
Anonymous18-Oct-05 10:17
Anonymous18-Oct-05 10:17 
AnswerRe: Bool data type issue Pin
Dezhi Zhao18-Oct-05 10:52
Dezhi Zhao18-Oct-05 10:52 
AnswerRe: Bool data type issue Pin
John M. Drescher18-Oct-05 11:11
John M. Drescher18-Oct-05 11:11 
GeneralRe: Bool data type issue Pin
itkid18-Oct-05 11:41
itkid18-Oct-05 11:41 
Questionconfusion with memory mapped files Pin
Chintoo72318-Oct-05 7:20
Chintoo72318-Oct-05 7:20 
AnswerRe: confusion with memory mapped files Pin
Joe Woodbury18-Oct-05 7:59
professionalJoe Woodbury18-Oct-05 7:59 
This is saying tht UnMapViewOfFile will trigger a lazy write, but the OS may write this data at any time. For performance reasons, however, it will tend to defer this. If you must write the data, just call FlushViewOfFile().

Note, however, that by default this still does a lazy write as do all disk writes (by default.) In practice the data will be written within very few milliseconds. And before you panic, note that your hard disk has a cache and is essentially doing the same thing.

If you want more immediate writes, you must use the FILE_FLAG_WRITE_THROUGH flag when you open the file (and follow the guidelines of using that flag.)

Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke

QuestionMemory problems Pin
bugDanny18-Oct-05 6:55
bugDanny18-Oct-05 6:55 
AnswerRe: Memory problems Pin
PJ Arends18-Oct-05 7:04
professionalPJ Arends18-Oct-05 7:04 
AnswerRe: Memory problems Pin
David Crow18-Oct-05 7:36
David Crow18-Oct-05 7:36 
GeneralRe: Memory problems Pin
bugDanny18-Oct-05 8:21
bugDanny18-Oct-05 8:21 
QuestionHow to make a circle push button? Pin
LaHaHa18-Oct-05 5:55
LaHaHa18-Oct-05 5:55 
AnswerRe: How to make a circle push button? Pin
ThatsAlok18-Oct-05 6:13
ThatsAlok18-Oct-05 6:13 
Questionthatsalok help me ( sending file through a socket) Pin
REU18-Oct-05 5:37
REU18-Oct-05 5:37 
AnswerRe: thatsalok help me ( sending file through a socket) Pin
ThatsAlok18-Oct-05 6:11
ThatsAlok18-Oct-05 6:11 
Questionmixing unmanaged and managed code to get a .Net dll Pin
DeepToot18-Oct-05 5:05
DeepToot18-Oct-05 5:05 
AnswerRe: mixing unmanaged and managed code to get a .Net dll Pin
DeepToot18-Oct-05 9:20
DeepToot18-Oct-05 9:20 
QuestionHow can I get help topic, content in .chm file? Pin
ducgerman18-Oct-05 4:42
ducgerman18-Oct-05 4:42 
Questionfunction send() (Winsocks) help !! Pin
REU18-Oct-05 4:37
REU18-Oct-05 4:37 
AnswerRe: function send() (Winsocks) help !! Pin
ThatsAlok18-Oct-05 4:56
ThatsAlok18-Oct-05 4:56 
GeneralRe: function send() (Winsocks) help !! Pin
begray18-Oct-05 9:23
begray18-Oct-05 9:23 
GeneralRe: function send() (Winsocks) help !! Pin
ThatsAlok18-Oct-05 19:47
ThatsAlok18-Oct-05 19:47 
QuestionHow can I make a modeless topmost for the desktop ? Pin
yarp18-Oct-05 4:03
yarp18-Oct-05 4:03 
AnswerRe: How can I make a modeless topmost for the desktop ? Pin
Iain Clarke, Warrior Programmer18-Oct-05 4:25
Iain Clarke, Warrior Programmer18-Oct-05 4:25 

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.