Hacker News new | ask | show | jobs
by prewett 5945 days ago
There's not exactly compatibility between versions of Windows, either. Want your XP app to run on Win7? I hope you weren't planning to write to your install directory, since that will require a permissions change on Win7. That XP app is probably 32-bit, too, and if you are on 64-bit Win7 I hope the app isn't looking for "C:\Program Files" to find itself, since it's now in "C:\Program Files (x86)". Why is it still not working? Maybe one of the API calls works differently, better try running in XP compatibility mode.

Simple stuff works great in new versions of Windows, but my experience is that if you expect it to work, you'd better test it on every version of Windows, because there will be version specific bug on one of them.

2 comments

To be fair, Windows lists binary compatibility as a feature. Linux ignores it entirely. And hardcoding paths is a really dumb move (which sadly does not make it any less popular). But yes, Windows backwards compatibility is not perfect.
> That XP app is probably 32-bit, too, and if you are on 64-bit Win7 I hope the app isn't looking for "C:\Program Files" to find itself, since it's now in "C:\Program Files (x86)".

I think most applications don't hard code system directory names since they differ not only between versions of windows, but also between languages (for example, I believe the aforementioned directory would be c:\programme on the german version of windows xp).