Get Desktop folder
Joachim Buermann
jbuermann at zes.com
Tue Nov 7 06:01:38 PST 2006
Hello Francesco,
wow, thanks! That's the hint I'm looking for. I will add a GetDesktopDir()
member to my wxMSW and wxGtk sources and will make some tests.
So, thanks again for your nice assistance.
Best regards
Joachim
Am Tuesday 07 November 2006 13:46 schrieb Francesco Montorsi:
> Joachim Buermann ha scritto:
> > Hello Nusret,
> >
> > thank you very much for your response. As far as I understand, also the
> > SHGetSpecialFolderPath depends on the microsoft windows version. For
> > newer systems (like win2k and XP or Vista) the shell32 export this
> > function, on older systems, the function is included by the shfolder.dll.
> > So an application, running at all systems should have to import this
> > function dynamically and couldn't linked against on of these.
> > I'm not a windows specialist, but hoping, there exist another more
> > simplicated way, to get the users desktop folder.
> > If the user doesn't change it's desktop folder name, I also can use
> > the ::wxGetUserHome() function and just add a "Desktop" entry to it's
> > path - but I'm not sure, if this is the right way to do this (and if
> > 'Desktop' is the correct name on other language settings).
>
> I think that a wxStandardPaths::GetDesktopDir() function would be a nice
> addition to wxStandardPaths...
>
> making a patch for that shouldn't be difficult specially because
> SHGetSpecialFolderPath is already wrapped there:
>
> wxString wxStandardPaths::GetDesktopDir() const
> {
> return DoGetDirectory(CSIDL_DESKTOPDIRECTORY);
> }
>
> Francesco
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
More information about the wx-users
mailing list