How to lock a file?
-
In CDocument::Serialize I access a .ini-file. All is ready now. But I want to protect the file currently in use from being edited/deteted/moved... with another application. How can I lock the file (like in Word: "The file you want to access is currently in use" (or similar) Can anybody help me? :-| Friedrich
-
In CDocument::Serialize I access a .ini-file. All is ready now. But I want to protect the file currently in use from being edited/deteted/moved... with another application. How can I lock the file (like in Word: "The file you want to access is currently in use" (or similar) Can anybody help me? :-| Friedrich
Hello, the codegurus around the world.;) When we open Word file, another temporary file is created. So, if someone first opens the file and another temporary file is created, the other people don't have the previlege to save this file. Does this work?:confused: Or, move this file to the temporary directory which anyone may not find this file easily? :eek: Have a nice day! -Masaaki Onishi-