Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » GetHomeDirectory, GetHomeDirFile in Win32
Re: GetHomeDirectory, GetHomeDirFile in Win32 [message #10728 is a reply to message #10512] |
Wed, 25 July 2007 18:36   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
It might be a better idea to use getenv("APPDATA") for application config (equivalent to HOMEDRIVE\HOMEPATH\Application Data) rather than the users root profile directory.
On a slight tangent, I'm going modify FileSel to include links to My Documents(Win32)/Home(Linux) and Desktop as their absence has been annoying me for ages. The safest way I've found to get these paths one windows is (for My Docs):
TCHAR path[MAX_PATH];
HRESULT hr = SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, path);
MDSN page here. Does anyone know of a better way? Has this been done already?
[Updated on: Wed, 25 July 2007 18:37] Report message to a moderator
|
|
|
 |
|
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:19:41 CEST 2025
Total time taken to generate the page: 0.05788 seconds
|