How to get the full path-name of 'My documents' in different OS?
C / C++ / MFC
5
Posts
4
Posters
0
Views
1
Watching
-
For example: 'D:\Documents and Settings\Grrrr\My Documents' In VC++6.0, which function or API or Class can do this? Thanks a lot...
-
-
For example: 'D:\Documents and Settings\Grrrr\My Documents' In VC++6.0, which function or API or Class can do this? Thanks a lot...
CString strApplicationDir; char szPath[_MAX_PATH]; BOOL bSuccess = SHGetSpecialFolderPath(GetActiveWindow(), szPath,CSIDL_PERSONAL, false); if(bSuccess) { strApplicationDir = szPath; }
Michael 'Logic, my dear Zoe, merely enables one to be wrong with authority.' - The Doctor: The Wheel in Space -
For example: 'D:\Documents and Settings\Grrrr\My Documents' In VC++6.0, which function or API or Class can do this? Thanks a lot...