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

C / C++ / MFC

 
GeneralRe: GetPrivateProfileString method: problems on Windows Vista Pin
El Corazon5-Sep-07 14:30
El Corazon5-Sep-07 14:30 
GeneralRe: GetPrivateProfileString method: problems on Windows Vista Pin
Michael Dunn5-Sep-07 17:19
sitebuilderMichael Dunn5-Sep-07 17:19 
GeneralRe: GetPrivateProfileString method: problems on Windows Vista Pin
El Corazon5-Sep-07 19:03
El Corazon5-Sep-07 19:03 
QuestionCView MFC Printing Pin
NorGUI5-Sep-07 7:19
NorGUI5-Sep-07 7:19 
AnswerRe: CView MFC Printing Pin
led mike5-Sep-07 7:39
led mike5-Sep-07 7:39 
AnswerRe: CView MFC Printing Pin
bob169725-Sep-07 17:05
bob169725-Sep-07 17:05 
QuestionFile I/O: What is the best approach Pin
KenThompson5-Sep-07 6:15
KenThompson5-Sep-07 6:15 
AnswerRe: File I/O: What is the best approach Pin
led mike5-Sep-07 7:38
led mike5-Sep-07 7:38 
KenThompson wrote:
My initial thought is that having multiple 'reader' objects leaves synchronization up to the OS


What OS and where is it documented that it performs such synchronization. And by this I assume you mean synchronization to the "write operations".
KenThompson wrote:
and that using some type of locking mechanism (such as a criticalsection/mutex) could slow performance.


"would" slow performance, it's not in question. However without the OS performing synchronization, of which I am unaware, you would have to do it to avoid reading corrupted data. You could optimize by creating a far more complex mechanism like Databases do of managing what "parts" of the file are locked for writing. Which of course raises the question of why you wouldn't just just use a database because they already implement everything you require.

Also you are not clear if this is across threads or across processes. The later synchronization is far more expensive.



GeneralRe: File I/O: What is the best approach Pin
KenThompson5-Sep-07 7:53
KenThompson5-Sep-07 7:53 
GeneralRe: File I/O: What is the best approach Pin
led mike5-Sep-07 8:16
led mike5-Sep-07 8:16 
GeneralRe: File I/O: What is the best approach Pin
KenThompson5-Sep-07 8:27
KenThompson5-Sep-07 8:27 
GeneralRe: File I/O: What is the best approach Pin
led mike5-Sep-07 8:58
led mike5-Sep-07 8:58 
GeneralRe: File I/O: What is the best approach Pin
jhwurmbach5-Sep-07 21:45
jhwurmbach5-Sep-07 21:45 
GeneralRe: File I/O: What is the best approach Pin
KenThompson6-Sep-07 4:41
KenThompson6-Sep-07 4:41 
AnswerRe: File I/O: What is the best approach Pin
cmk5-Sep-07 17:03
cmk5-Sep-07 17:03 
GeneralRe: File I/O: What is the best approach Pin
KenThompson6-Sep-07 4:42
KenThompson6-Sep-07 4:42 
QuestionSimple UDP Server Pin
Andy2025-Sep-07 5:14
Andy2025-Sep-07 5:14 
AnswerRe: Simple UDP Server Pin
led mike5-Sep-07 5:49
led mike5-Sep-07 5:49 
QuestionHow to protect my vector, or any other variable? Pin
bosfan5-Sep-07 4:25
bosfan5-Sep-07 4:25 
AnswerRe: How to protect my vector, or any other variable? Pin
Waldermort5-Sep-07 4:29
Waldermort5-Sep-07 4:29 
QuestionRe: How to protect my vector, or any other variable? Pin
David Crow5-Sep-07 4:31
David Crow5-Sep-07 4:31 
AnswerRe: How to protect my vector, or any other variable? Pin
bosfan6-Sep-07 1:32
bosfan6-Sep-07 1:32 
GeneralRe: How to protect my vector, or any other variable? Pin
David Crow6-Sep-07 2:09
David Crow6-Sep-07 2:09 
AnswerRe: How to protect my vector, or any other variable? Pin
El Corazon5-Sep-07 4:55
El Corazon5-Sep-07 4:55 
QuestionExtracting Zip file stored as BLOB from DB using VC++ Pin
sourav.chats5-Sep-07 4:23
sourav.chats5-Sep-07 4:23 

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.