Xml file are saved in two different path

ArtiFax

New Member
I created application that store some data to XML file. The issues is with the path of the xml saving. Am using \[code\]TinyXML\[/code\] to save the data in vc++. When i deploy this appliation, it installs in \[code\]"C:\Program files(x86)\applicationname "\[/code\] and when i run the application the XML file is saving in \[code\]"C:\Users\UserName\AppData\Local\VirtualStore\Program Files (x86)\ApplicationName ".\[/code\]I have made this application to work on system startup. So when i restart this application,the xml file is stored in different path \[code\]"C:\Users\UserName\AppData\Local\VirtualStore\windows\sysWOW64"\[/code\]I want my xml to be stored in the path where i installed or should be stored in appdata,application nameWhat I should do to store XML file in one places where application is installed.\[code\]doc.SaveFile( "test.xml" ); // xml saving code in tinyxml library\[/code\]This is my first project working with \[code\]TinyXML\[/code\] and \[code\]VC++ Builder\[/code\]. I am looking to resolve this.
 
Back
Top