[SDL] Best location to save a file on Window Operating Systems?

Paulo Pinto pjmlp at progtools.org
Tue Mar 13 14:56:25 PDT 2007


Hi,

just follow Microsoft advice,
http://msdn2.microsoft.com/en-us/library/aa480150.aspx

Look for "Locating of Per-User Application Settings"

The best way to find the folder location is to use the SHGetFolderPath()
function with CSIDL_APPDATA or CSIDL_LOCAL_APPDATA as
location.

http://msdn2.microsoft.com/en-us/library/ms647764.aspx
http://msdn2.microsoft.com/en-us/library/ms649274.aspx

Hope this helps,
Paulo

SlntHero at aol.com schrieb:
> Best location to save a file on Window Operating Systems?
>  
>  
> I design games using SDL for the PC Windows platform.
>  
> My question is the following:
> On a Windows 98/2000/Me/xp/2003/Vista computer system,
> where is the best (100% working on all above systems)
> disk location to save information in a file used by SDL application?
>  
> I fear that the current location I am using is not working on new 
> Vista OS.
>  
> Anyone have a suggestion?
>  
> Thanks in advance!
>  
>  
> Jesse
> SLNTHERO at AOL.com <mailto:SLNTHERO at AOL.com>
> http://www.SilentHeroProductions.com
>  
>
>
>
> ------------------------------------------------------------------------
> AOL now offers free email to everyone. Find out more about what's free 
> from AOL at *AOL.com* <http://www.aol.com?ncid=AOLAOF00020000000339>.
> ------------------------------------------------------------------------
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>   




More information about the SDL mailing list