Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3042

.ini & SaveBarState problem

$
0
0
Hi!

I´m developing an aplication where I save the bar state to a .ini file. Im setting m_pszProfileName = ::_tcsdup(_T(".\\MYAPLICATION.ini")) to avoid using the registry. The problem is that VS is creating the file not alowing to the commum users to write to the file. This way, for the commum user of my aplication the new state of the bars are not being saved. If I run the aplication as administrator the problem does not happen (I cheked the permitions of the file and for commun users writing is not alowed). Is there any command on the MSVC C++ to create this file alowing the commum user to write to the file? My goal is alow the commum user of my aplication to have the bar state saved transparently without need to call my aplication as an administrator.

Thank you

Viewing all articles
Browse latest Browse all 3042

Trending Articles