Hello!
I created a software that reads a file from a closed folder when it is started, but when it detects that the file and the folder don't exist, it creates a new one with predefined names.
The problem is that the software is hold in the Crogram files (x86) folder, which is a place which require admin status for files and folder creation (and I don't know why I don't have that permission despite being administrator, but anyway). So what happens is that if I put the .exe plus .dll files in a common folder, the software runs ok, but when the software is put inside Program Files (x86), it doesn't open and the folder and the file is not created.
How should I proceed in this case? Is there a function in Qt or C++ that ask the user for permission and, once the permission is given, it would open the folder and create the file?
Thanks!
Momergil


rogram files (x86) folder, which is a place which require admin status for files and folder creation (and I don't know why I don't have that permission despite being administrator, but anyway). So what happens is that if I put the .exe plus .dll files in a common folder, the software runs ok, but when the software is put inside Program Files (x86), it doesn't open and the folder and the file is not created.
Reply With Quote

Bookmarks