I wrote two separate console programs that use the terminal window. They both have the same code initially in the beginning to setup the window size. However what is strange one demands to be ran with Admin privileges when compiled to an exe. I have not coded anything in such a way for my program to require this.
I have checked over my compiler settings and see nothing out of the ordinary. What could this be?
Console program suddenly Demands "Admin" privileges
- Vernostonos
- User
- Posts: 58
- Joined: Thu Jul 02, 2020 9:52 pm
Re: Console program suddenly Demands "Admin" privileges
This can happen (for example) if the program tries to write (i.e. to a ini/prefs file) to a location normally reserved for an admin account, like ProgramFiles or the root of the system disk (C:\)
- Vernostonos
- User
- Posts: 58
- Joined: Thu Jul 02, 2020 9:52 pm
Re: Console program suddenly Demands "Admin" privileges
Interesting, however neither program writes any information to the hard drive.