Click here to Skip to main content
       

C / C++ / MFC

 
QuestionLock a file PinmemberIain Wiseman3-Nov-12 17:46 
AnswerRe: Lock a file PinmvpRichard MacCutchan3-Nov-12 22:25 
GeneralRe: Lock a file PinmemberIain Wiseman4-Nov-12 10:22 
GeneralRe: Lock a file PinmemberIain Wiseman4-Nov-12 11:58 
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 
GeneralC CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING PinmemberSTEVE10K3-Nov-12 8:34 
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING PinmemberTr@v3-Nov-12 12:15 
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING PinmemberSTEVE10K5-Nov-12 8:57 
AnswerRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING [modified] PinmemberTr@v7-Nov-12 8:47 
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING PinmemberSTEVE10K8-Nov-12 4:41 
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING PinmemberSTEVE10K3-Dec-12 3:49 
QuestionC++ question. Please help me out PinmemberMember 88567522-Nov-12 10:06 
AnswerRe: C++ question. Please help me out Pinmemberjeron12-Nov-12 10:18 
AnswerRe: C++ question. Please help me out PinmvpRichard MacCutchan2-Nov-12 11:23 
AnswerRe: C++ question. Please help me out PinmemberAmarnath S3-Nov-12 21:49 
Questionhow to return value after user input [modified] PinmemberMember 21198442-Nov-12 6:11 

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
Web03 | 2.8.141223.1 | Last Updated 26 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid