--
-------------------------------------------------------------------------
Free software - Baxter Codeworks
www.baxcode.com
-------------------------------------------------------------------------
"Jeff Partch [MVP]" wrote in message
...
"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?
Sorry, I meant SHGetSpecialFolderLocation. I also tried SHGetFolderPath.
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?
Without being absolutely precise - yes. I can get all the indicated
directories except for CSIDL_PROGRAM_FILES.
Any ideas?
http://msdn.microsoft.com/library/de...folderpath.asp
I'm using Win98 SE w/IE 6.0. According to this last link, I would expect it
to work. This particular code was developed in VC++6.0 and worked
previously. I'm wondering if it's not a library/link problem. The problem
code is being compiled on a Win2000 system under VS.NET 2003 (VC++).