Acessing an opened file with another process

Hi, I'm trying to open a text file (just for reading) in my mfc aplication which is already opened for writing by other process, for example the windows Notepad, the irc client mirc (while logging), etc.I always get an error opening the file with a CFile object. Is there any other way (with or without CFile) to do this? Thanks.

Comments

  • : Hi, I'm trying to open a text file (just for reading) in my mfc aplication which is already opened for writing by other process, for example the windows Notepad, the irc client mirc (while logging), etc.I always get an error opening the file with a CFile object. Is there any other way (with or without CFile) to do this? Thanks.
    :

    If other process has locked that file there is no way you can open it unless you bypass filemanager somehow.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion