Click here to Skip to main content
15,917,618 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncheck file opened or not? Pin
George_George2-Apr-08 3:55
George_George2-Apr-08 3:55 
AnswerRe: check file opened or not? Pin
David Crow2-Apr-08 4:16
David Crow2-Apr-08 4:16 
GeneralRe: check file opened or not? Pin
George_George2-Apr-08 20:40
George_George2-Apr-08 20:40 
GeneralRe: check file opened or not? Pin
David Crow3-Apr-08 3:06
David Crow3-Apr-08 3:06 
GeneralRe: check file opened or not? Pin
George_George3-Apr-08 3:39
George_George3-Apr-08 3:39 
GeneralRe: check file opened or not? Pin
David Crow3-Apr-08 3:45
David Crow3-Apr-08 3:45 
GeneralRe: check file opened or not? Pin
George_George3-Apr-08 4:04
George_George3-Apr-08 4:04 
GeneralRe: check file opened or not? [modified] Pin
JudyL_MD3-Apr-08 5:28
JudyL_MD3-Apr-08 5:28 
George_George wrote:
I think using OpenFile with exclusive shared mode option is fine. Any comments


That will only tell you if the file is already open with exclusive access. It will not tell you if the file is already open with shared access. AFAIK, there is no user-mode way to tell that, unless David's previous answer can do that (I haven't ever needed to use the Net set of functions).

Judy

modified on Thursday, April 3, 2008 4:19 PM

GeneralRe: check file opened or not? Pin
George_George3-Apr-08 21:18
George_George3-Apr-08 21:18 
GeneralRe: check file opened or not? Pin
JudyL_MD4-Apr-08 1:56
JudyL_MD4-Apr-08 1:56 
GeneralRe: check file opened or not? Pin
George_George4-Apr-08 2:19
George_George4-Apr-08 2:19 
GeneralRe: check file opened or not? Pin
JudyL_MD4-Apr-08 2:23
JudyL_MD4-Apr-08 2:23 
GeneralRe: check file opened or not? Pin
George_George4-Apr-08 2:44
George_George4-Apr-08 2:44 
AnswerRe: check file opened or not? Pin
led mike2-Apr-08 4:28
led mike2-Apr-08 4:28 
GeneralRe: check file opened or not? Pin
George_George2-Apr-08 20:37
George_George2-Apr-08 20:37 
AnswerRe: check file opened or not? Pin
basementman2-Apr-08 4:55
basementman2-Apr-08 4:55 
GeneralRe: check file opened or not? Pin
George_George2-Apr-08 20:38
George_George2-Apr-08 20:38 
AnswerRe: check file opened or not? Pin
Hamid_RT7-Apr-08 4:07
Hamid_RT7-Apr-08 4:07 
GeneralRe: check file opened or not? Pin
George_George7-Apr-08 4:10
George_George7-Apr-08 4:10 
GeneralRe: check file opened or not? Pin
Hamid_RT7-Apr-08 4:29
Hamid_RT7-Apr-08 4:29 
GeneralRe: check file opened or not? Pin
George_George7-Apr-08 4:38
George_George7-Apr-08 4:38 
GeneralRe: check file opened or not? Pin
Hamid_RT7-Apr-08 5:07
Hamid_RT7-Apr-08 5:07 
GeneralWrong DLL output Pin
parth.p2-Apr-08 3:15
parth.p2-Apr-08 3:15 
GeneralRe: Wrong DLL output Pin
Cedric Moonen2-Apr-08 3:18
Cedric Moonen2-Apr-08 3:18 
GeneralRe: Wrong DLL output Pin
parth.p2-Apr-08 3:22
parth.p2-Apr-08 3:22 

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.