Re: How to get "MyDocuments" path of a system?
Hi Tom,
For newer versions (Win 2000 and up) you are supposed to use SHGetFolderPath
instead of SHGetSpecialFolderPath. SHGetFolderPath is also backward
compatible for versions before 2000.
This is from the SHGetSpecialFolderPath help
With Microsoft Windows 2000, this function is superseded by ShGetFolderPath.
You can use this function on earlier systems by including the
redistributable dynamic-link library (DLL), ShFolder.dll.
This is from SHGetFolderPath help
This function is a superset of SHGetSpecialFolderPath, included with earlier
versions of the Shell. On systems preceeding those including Shell32.dll
version 5.0 (Windows Millennium Edition (Windows Me) and Windows 2000),
SHGetFolderPath was obtained through SHFolder.dll, distributed with
Microsoft Internet Explorer 4.0 and later versions. SHFolder.dll always
calls the current platform's version of this function. If that fails, it
will try to simulate the appropriate behavior. SHFolder.dll continues to be
included for backward compatibility, though the function is now implemented
in Shell32.dll.
AliR.
"Tom Serface" <tserface@msn.com> wrote in message
news:%237tib76yGHA.1288@TK2MSFTNGP03.phx.gbl...
Hi Ali,
I use SHGetSpecialFolderPath() all the time for the shell folder names.
Does the other one SHGetFolderPath() work on newer versions of VS?
Tom
"AliR" <AliR@online.nospam> wrote in message
news:44f49f91$0$15209$a8266bb1@reader.corenews.com...
Use SHGetSpecialFolderPath() instead.
AliR.
"donos" <dipuks@gmail.com> wrote in message
news:1156881893.718444.313980@i3g2000cwc.googlegroups.com...
I am using Visual Studio 6.0
WHat is WINVER?