Thread: how to check if certain files are being used by others??

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    117

    how to check if certain files are being used by others??

    i have written a program which is about file read write and what should i do if i dun want another user use the program while someone is using it?

    cos this program can be used in different computers with the files are in the shared directory.

    does it related to "ios"??
    thank you

  2. #2
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    This is pure 100% guess but doesn't the OS handle that, if the file is in use it will pop up a MessageBox(), at least that's been my experience.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    117

    haha...yes...i just guess that~~

    i just make a guess cos ios::nocreate can detect whether the file exist or not.....i just wanna know if there will have some similar thing.....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. HELP!!!!emergency Problem~expert please help
    By unknowppl in forum C++ Programming
    Replies: 9
    Last Post: 08-21-2008, 06:41 PM
  2. Program Deployment and DLL/OCX Files?
    By dfghjk in forum C++ Programming
    Replies: 5
    Last Post: 06-16-2008, 02:47 AM
  3. accessing all files in a folder.
    By pastitprogram in forum C++ Programming
    Replies: 15
    Last Post: 04-30-2008, 10:56 AM
  4. spell check in C using a dictionary file
    By goron350 in forum C Programming
    Replies: 10
    Last Post: 11-25-2004, 06:44 PM
  5. check my code ( if statement, file existance )
    By Shadow in forum C Programming
    Replies: 1
    Last Post: 10-04-2001, 11:13 AM