Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » GetHomeDirectory, GetHomeDirFile in Win32
Re: GetHomeDirectory, GetHomeDirFile in Win32 [message #10499 is a reply to message #10493] Thu, 12 July 2007 21:49 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
benoitc wrote on Thu, 12 July 2007 05:02

Thanks.

BTW, it might be good to update ConfigFile() as well for Windows to be more compliant with Windows path used for application.

Instead of using the EXE directory.
return GetExeDirFile(file);

We can store config file in the "Application Data" Windows directory that belong to the user.
String p = GetHomeDirFile("Application Data\\" + GetExeTitle());
static bool b;
if(!b) {
	RealizeDirectory(p);
	b = true;
}
return AppendFileName(p, file);


Regards,
Benoit


Sure, I was thinking about it too, however, I feel like for most applications in win32 (at least for those I sell to my customers), keeping .cfg in exedir leads to much simpler maintenance (uninstall? delete the folder. broken .cfg? you know where to find it). But perhaps it could be some flag switching the behaviour, with exedir as default?

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DropList::NotNull implemented, fixed refreshing right button after closing popuped list
Next Topic: New simple static widget DisplayCtrl...
Goto Forum:
  


Current Time: Tue Aug 26 23:27:34 CEST 2025

Total time taken to generate the page: 0.05588 seconds