Thread: Weird problem
View Single Post
  #2  
Old May 31st 04, 09:50 PM
Jeff Partch [MVP]
external usenet poster
 
Posts: n/a
Default Weird problem

"Baxter" wrote in message
...
I am using SHGetSpecialFolder with CSIDL_PROGRAM_FILES to get an install
directory. On my Win2000 system, this works fine. On my Win98 system, it
fails with an "invalid argument" error.

I tried setting up a loop and calling with a range of values. All
appropriate values worked correctly except 0x0026 (CSIDL_PROGRAM_FILES).


What is SHGetSpecialFolder?

In the meantime, the documentation...

http://msdn.microsoft.com/library/de...nums/csidl.asp

....describes CSIDL_PROGRAM_FILES as a, "Version 5.0" value. When you say
"appropriate values", are you saying that all other "Version 5.0" values
work for you? Anyway, I'm not so sure that I'd expect them to. According to
the "Shell and Common Controls Versions" documentation...

http://msdn.microsoft.com/library/de...e/versions.asp

....if "Version 5.0" means "[Version] 5.0 [of] Shell32.dll [available on]
Windows 2000 and Windows Millennium Edition (Windows Me). See note 3", and
where note 3 says without hesitation that, "version 5.0 of Shell32.dll will
not be found on Windows NT, Windows 95, or Windows 98 systems"

Any ideas?


http://msdn.microsoft.com/library/de...folderpath.asp

--
Jeff Partch [VC++ MVP]