Click here to Skip to main content

C / C++ / MFC

 
AnswerRe: Why the CTreeCtrl disable Pingroupyu-jian4-Nov-12 17:35 
GeneralRe: Why the CTreeCtrl disable PinmvpRichard MacCutchan4-Nov-12 22:22 
AnswerRe: Why the CTreeCtrl disable PinmemberAndrew Cherednik4-Nov-12 11:57 
AnswerRe: Why the CTreeCtrl disable Pinmembersajeesh.c4-Nov-12 20:42 
Questionhow can i set modem speed when i create rasdial entry. Pinmemberdolpari7013-Nov-12 23:03 
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 
I want to disable other processing from locking the file.
 
When I use CreateFile, this works except it also prevents Xerces from reading the file so the code looks a little like this
 
m_Handle = CreateFile(
    TEXT(inFullyQualifiedPath.c_str()),
    GENERIC_ALL,
    0,
    NULL,
    OPEN_EXISTING,
    NULL,
    NULL);
 
    m_ConfigFileParser = new xercesc::XercesDOMParser;
    m_ConfigFileParser->parse(m_Filename.c_str());
 
 
The reading of the file fails because Xerces cannot open the file.
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 
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 

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
Web02 | 2.8.150327.1 | Last Updated 27 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid