Answer the question
In order to leave comments, you need to log in
C++ doesn't create file without admin rights?
I am using Visual Studio. Wrote a simple code to create a file. It is working, it was checked + I myself made sure of this by running the compiled executable with administrator rights.
BUT! during normal compilation, the file is not created and nothing is written there (even if I create it myself - by hand).
Question: how do I run compilation with administrator rights? Because that's how the executable worked. I run the visual with rights - it doesn't help. Now I'm trying to reinstall it by running the installer with admin rights (I don't know yet whether it will help or not ..)
Answer the question
In order to leave comments, you need to log in
thanks to all. The issue was resolved by disabling Auto-Containment in Comode )
Should the file be created by the program itself?
And if the program is run separately without admin rights, the file will be created?
And if you do it in another folder (for example, not in programm files)?
The path contains non-Latin characters (eg Cyrillic) ?
Can you write a minimal program that reproduces the problem and post the source?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question