If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Weird problem
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). Any ideas? -- ------------------------------------------------------------------------- Free software - Baxter Codeworks www.baxcode.com ------------------------------------------------------------------------- |
#2
|
|||
|
|||
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] |
#3
|
|||
|
|||
Weird problem
--
------------------------------------------------------------------------- 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++). |
#4
|
|||
|
|||
Weird problem
On Mon, 31 May 2004 13:22:16 -0700, "Baxter"
wrote: 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). Any ideas? There's no need for such a complicated way to get program files directory. Use on all platforms %PROGRAMFILES% Aleksandar Vukelja |
#5
|
|||
|
|||
Weird problem
"Baxter" wrote in message
... ...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++). Well, that is weird. If all the others work, I can't fathom why this one doesn't. I sure hope Aleksandar's reply helps. -- Jeff Partch [VC++ MVP] |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Here's a really weird win explorer problem | John Kirton | General | 15 | July 15th 04 07:32 PM |
Shutdown problem when filesharing enabled | Ivan | General | 2 | July 5th 04 12:48 PM |
Winsock Error or Host File Problem? | Bruce | General | 2 | June 7th 04 02:51 PM |
I'm having a repeating problem Lexmark X83 | HBYardSale | Printing | 1 | June 5th 04 09:04 PM |
E-mail Password problem | Benny | Networking | 0 | June 5th 04 03:32 AM |