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 #10728 is a reply to message #10512] Wed, 25 July 2007 18:36 Go to previous messageGo to previous message
mrjt is currently offline  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

 
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:19:41 CEST 2025

Total time taken to generate the page: 0.05788 seconds