Win98 compatibility
Win98 compatibility
Version 2.0.5 calls the unsupported function SHGetFolderPathA (instead of SHGetSpecialFolderPathA).
Or perhaps you dropped support for that OS, then I guess it's not a bug...
Or perhaps you dropped support for that OS, then I guess it's not a bug...
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Win98 compatibility
The call would then be
instead of
?
Code: Select all
SHGetSpecialFolderPathA( NULL, tmpstr, CSIDL_PERSONAL, TRUE )
Code: Select all
SHGetFolderPathA( NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, tmpstr )
Re: Win98 compatibility
Same problem here; 2.0.5 does not start due to this problem (of course xD).
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Win98 compatibility
So who needs Win98 compatibility? I think when I last asked there was no one who needed it. Let's find out how it is currently.
Re: Win98 compatibility
looks like at least 2 peopleDevUrandom wrote: So who needs Win98 compatibility? I think when I last asked there was no one who needed it. Let's find out how it is currently.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Win98 compatibility
Yep. I needed a remainder, so I don't forget to change it for 2.0.6. And actually I don't know how this works one Win98 and I can't test it myself...
- lav_coyote25
- Professional
- Posts: 3434
- Joined: 08 Aug 2006, 23:18
Re: Win98 compatibility
ok here it is :
Official call for BETA TESTERS of the WIN98 code. contact Devurandom as soon as possible.
Official call for BETA TESTERS of the WIN98 code. contact Devurandom as soon as possible.
"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
Re: Win98 compatibility
*callsdevu* That enough?
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Win98 compatibility
Ok then. When I have time, I'll create a snapshot of the 2.0 branch with the other, Win98 compatible, folder thingy.
- lav_coyote25
- Professional
- Posts: 3434
- Joined: 08 Aug 2006, 23:18
Re: Win98 compatibility
Kreuvf wrote: *callsdevu* That enough?
yes thankyou. ;D
"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
Re: Win98 compatibility
Can't you just use a #define for the Windows Version number so that it executes the decent function for XP systems and the "bad code" for 98. That way 98 is unsupported but launches? Or are the two functions very different and effect more than just a few lines of code where #defines are not worth it. (I am assuming this is C/C++)DevUrandom wrote: The call would then beinstead ofCode: Select all
SHGetSpecialFolderPathA( NULL, tmpstr, CSIDL_PERSONAL, TRUE )
?Code: Select all
SHGetFolderPathA( NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, tmpstr )
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Win98 compatibility
Actually it is only one line of code.
But on WinXP the folder can be a "virtual" one, which means that the user can choose another folder to be his My Documents folder. On Win98 it is a specific path. At least that's how I understood it in the MSDN...
MS provides some hooks to find out the shell32 version at runtime. I'll use that to check which function to use. (But currently have no time. But it is on the roadmap for 2.0.6.)
But on WinXP the folder can be a "virtual" one, which means that the user can choose another folder to be his My Documents folder. On Win98 it is a specific path. At least that's how I understood it in the MSDN...
MS provides some hooks to find out the shell32 version at runtime. I'll use that to check which function to use. (But currently have no time. But it is on the roadmap for 2.0.6.)
Re: Win98 compatibility
Just for clarification: How much disk space is neccessary in order to do win98-compatibility-beta-testing?DevUrandom wrote:
Ok then. When I have time, I'll create a snapshot of the 2.0 branch with the other, Win98 compatible, folder thingy.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Win98 compatibility
About 2MB... You only need a different exe. (So you can look yourself how big that is. The Win98 fallback code wont add many bytes to it. )
PS: Do you have IE5 installed?
Because the MSDN library says about SHGetFolderPath:
PS: Do you have IE5 installed?
Because the MSDN library says about SHGetFolderPath:
So actually even Win95 should be supported, as long as IE5 is installed...MSDN library wrote: Minimum operating systems
Windows 95 with Internet Explorer 5.0, Windows 98 with Internet Explorer 5.0, Windows 98 Second Edition (SE), Windows NT 4.0 with Internet Explorer 5.0, Windows NT 4.0 with Service Pack 4 (SP4)
MSDN library
Last edited by DevUrandom on 10 Jan 2007, 02:46, edited 1 time in total.
Re: Win98 compatibility
MSIE6 installed.