Click here to Skip to main content

C / C++ / MFC

 
GeneralRe: Lock a file PinmvpRichard MacCutchan4-Nov-12 22:06 
GeneralRe: Lock a file PinmemberIain Wiseman4-Nov-12 23:17 
GeneralRe: Lock a file PinmvpRichard MacCutchan5-Nov-12 4:05 
GeneralRe: Lock a file PinmemberIain Wiseman5-Nov-12 9:58 
I am simply after in one process being able to prevent someone else opening a file whilst I am reading it. I do not have control over the opening of the file as this is done within the Xerces library. The file is an xml file hence the use of xerces. Once I have completed the read I want to sometimes delete the file.
 
Ideally I would have like to in my process
 
Check I have exclusive rights to the file
Read it using xerces
Delete it
GeneralRe: Lock a file Pinmember SandipG 5-Nov-12 22:53 
GeneralRe: Lock a file PinmvpRichard MacCutchan5-Nov-12 23:10 
GeneralRe: Lock a file PinmemberIain Wiseman6-Nov-12 20:29 
GeneralMessage Removed PinmemberSarath C4-Nov-12 22:42 
GeneralRe: Lock a file PinmvpRichard MacCutchan5-Nov-12 4:00 
AnswerRe: Lock a file PinmemberSarath C5-Nov-12 23:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 30 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid