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   |
 |
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
|
|
|
 |
|
GetHomeDirectory, GetHomeDirFile in Win32
By: mirek on Thu, 05 July 2007 20:37
|
 |
|
Re: GetHomeDirectory, GetHomeDirFile in Win32
By: benoitc on Thu, 12 July 2007 11:02
|
 |
|
Re: GetHomeDirectory, GetHomeDirFile in Win32
By: mirek on Thu, 12 July 2007 21:49
|
 |
|
Re: GetHomeDirectory, GetHomeDirFile in Win32
By: benoitc on Fri, 13 July 2007 10:31
|
 |
|
Re: GetHomeDirectory, GetHomeDirFile in Win32
By: mirek on Fri, 13 July 2007 13:35
|
 |
|
Re: GetHomeDirectory, GetHomeDirFile in Win32
By: mrjt on Wed, 25 July 2007 18:36
|
 |
|
Re: GetHomeDirectory, GetHomeDirFile in Win32
By: Zardos on Wed, 25 July 2007 19:22
|
 |
|
Re: GetHomeDirectory, GetHomeDirFile in Win32
By: mrjt on Thu, 26 July 2007 10:38
|
 |
|
Re: GetHomeDirectory, GetHomeDirFile in Win32
|
 |
|
Re: GetHomeDirectory, GetHomeDirFile in Win32
By: mirek on Fri, 27 July 2007 12:41
|
 |
|
Re: GetHomeDirectory, GetHomeDirFile in Win32
|
Goto Forum:
Current Time: Tue Aug 26 23:27:34 CEST 2025
Total time taken to generate the page: 0.05588 seconds
|