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

C / C++ / MFC

 
GeneralRe: Pls Help Pin
trinadh_t23-Feb-06 1:10
trinadh_t23-Feb-06 1:10 
GeneralRe: Pls Help Pin
murali_utr23-Feb-06 1:30
murali_utr23-Feb-06 1:30 
GeneralRe: Pls Help Pin
Dennis Gourjii23-Feb-06 1:33
Dennis Gourjii23-Feb-06 1:33 
JokeRe: Pls Help Pin
jhwurmbach23-Feb-06 22:13
jhwurmbach23-Feb-06 22:13 
QuestionBest way to Write and read from a file Pin
fearless stallion23-Feb-06 0:48
fearless stallion23-Feb-06 0:48 
AnswerRe: Best way to Write and read from a file Pin
James R. Twine23-Feb-06 0:57
James R. Twine23-Feb-06 0:57 
GeneralRe: Best way to Write and read from a file Pin
fearless stallion23-Feb-06 1:58
fearless stallion23-Feb-06 1:58 
AnswerRe: Best way to Write and read from a file Pin
James R. Twine23-Feb-06 2:30
James R. Twine23-Feb-06 2:30 
   No, I do not think you will have any errors unless you manually handle locking sections of the file.  You should synchronize access to the file HANDLE by wrapping calls to your read/write functions inside of a critical section (if the threads are in the same process) or a named object (event, mutex, etc.) if they are in separate processes.

   Look up the Sync objects and their related functions (SetEvent, WaitForSingleObject, EnterCriticalSection, etc.) in the MSDN help

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
AnswerRe: Best way to Write and read from a file Pin
Dennis Gourjii23-Feb-06 1:36
Dennis Gourjii23-Feb-06 1:36 
QuestionRe: Best way to Write and read from a file Pin
fearless stallion23-Feb-06 1:53
fearless stallion23-Feb-06 1:53 
AnswerRe: Best way to Write and read from a file Pin
Dennis Gourjii23-Feb-06 2:56
Dennis Gourjii23-Feb-06 2:56 
JokeRe: Best way to Write and read from a file Pin
James R. Twine23-Feb-06 2:33
James R. Twine23-Feb-06 2:33 
GeneralRe: Best way to Write and read from a file Pin
Dennis Gourjii23-Feb-06 2:50
Dennis Gourjii23-Feb-06 2:50 
JokeRe: Best way to Write and read from a file Pin
James R. Twine23-Feb-06 3:28
James R. Twine23-Feb-06 3:28 
GeneralRe: Best way to Write and read from a file Pin
Dennis Gourjii23-Feb-06 3:45
Dennis Gourjii23-Feb-06 3:45 
AnswerRe: Best way to Write and read from a file Pin
James R. Twine23-Feb-06 4:51
James R. Twine23-Feb-06 4:51 
AnswerRe: Best way to Write and read from a file Pin
Wim Engberts23-Feb-06 5:01
Wim Engberts23-Feb-06 5:01 
GeneralRe: Best way to Write and read from a file Pin
fearless stallion23-Feb-06 19:03
fearless stallion23-Feb-06 19:03 
GeneralRe: Best way to Write and read from a file Pin
Wim Engberts23-Feb-06 23:17
Wim Engberts23-Feb-06 23:17 
GeneralRe: Best way to Write and read from a file Pin
fearless stallion24-Feb-06 1:17
fearless stallion24-Feb-06 1:17 
AnswerRe: ListCtrl Pin
James R. Twine23-Feb-06 4:55
James R. Twine23-Feb-06 4:55 
QuestionOverwriting in the console Pin
Cedric Moonen22-Feb-06 23:59
Cedric Moonen22-Feb-06 23:59 
AnswerRe: Overwriting in the console Pin
divine_augustine8423-Feb-06 0:11
divine_augustine8423-Feb-06 0:11 
GeneralRe: Overwriting in the console Pin
toxcct23-Feb-06 0:13
toxcct23-Feb-06 0:13 
AnswerRe: Overwriting in the console Pin
toxcct23-Feb-06 0:12
toxcct23-Feb-06 0:12 

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.