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 » U++ Library support » U++ Core » SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath)
SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath) [message #6510] Wed, 15 November 2006 13:50 Go to next message
yeohhs
Messages: 75
Registered: November 2005
Location: Malaysia
Member
Is there an equivalent U++ function for SHGetFolderPath?

I'm saving a program's config file into the user's Application Data folder. Right now, I'm using SHGetFolderPath with PathAppend and CreateDirectory and it is working fine but only on Windows. Sad

I've read Core/Util.h and Core/Win32Com.h but couldn't find a substitute. Am I missing something else?

Thanks in advance for any ideas or suggestions. Smile

Best Regards,
Yeoh
Re: SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath) [message #6512 is a reply to message #6510] Wed, 15 November 2006 15:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
No.

We can add something later, but I am not even sure what linux equivalents are.... Maybe it is way to platform specific...

Mirek

Re: SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath) [message #6513 is a reply to message #6510] Wed, 15 November 2006 16:23 Go to previous message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
yeohhs wrote on Wed, 15 November 2006 13:50

Is there an equivalent U++ function for SHGetFolderPath?

I'm saving a program's config file into the user's Application Data folder. Right now, I'm using SHGetFolderPath with PathAppend and CreateDirectory and it is working fine but only on Windows. Sad

I've read Core/Util.h and Core/Win32Com.h but couldn't find a substitute. Am I missing something else?

Thanks in advance for any ideas or suggestions. Smile

Best Regards,
Yeoh



The closest thing to CSIDL on POSIX is the XDG base directory specifcation: http://standards.freedesktop.org/basedir-spec/basedir-spec-0 .5.html

Guido

Previous Topic: Is there a little database class?
Next Topic: How to prevent .log file creation?
Goto Forum:
  


Current Time: Thu Mar 28 14:15:44 CET 2024

Total time taken to generate the page: 0.00851 seconds