Hi,
I have a process that creates a file in the application path. I need to get a reference to this file in order to flush or close it.
Making only;
Qt Code:
To copy to clipboard, switch view to plain text mode
would be enough?
Hi,
I have a process that creates a file in the application path. I need to get a reference to this file in order to flush or close it.
Making only;
Qt Code:
To copy to clipboard, switch view to plain text mode
would be enough?
Last edited by zgulser; 20th June 2012 at 13:34.
Not really sure what you mean. You can't flush or close file opened by process A from within a different process B.
Hi again,
I mean I'm opening a file from another dll. aFter a while I want to access this file ( somewhere at D: ) via QFile in order to flush it.
Then you need to get the exact same handle from that dll. Opening a new handle (through QFile) won't help.
use QDataStream and setDevice() function in it.
Hopes help you !
Life is about making the right decisions and moving on.
Tell me Ali Reza, why would using QDataStream help anything here?
by setDevice function, we can manage an IO device such as read specific bytes
If i underestand correctly.
:-)
Life is about making the right decisions and moving on.
oh
excuse me sir.
my post did not related.
excuse again ...
Life is about making the right decisions and moving on.
Bookmarks