Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> > Typing 'write' in the Run dialog still opens WordPad today

> pbrush also opens Microsoft Paint.

And in both cases, the reason was most probably backwards compatibility, so that programs which directly called WRITE.EXE or PBRUSH.EXE to open a file would keep working. Most of these are going to be 16-bit Windows programs (which AFAIK no longer work, unless you're still running a 32-bit build of Windows), or 32-bit Windows programs directly ported from 16-bit Windows programs (Microsoft designed the 32-bit Windows API to make it easy to have a single source code building both 16-bit and 32-bit versions of the same program, and to make it easy to adapt the source code from a 16-bit Windows program into a 32-bit Windows program; it was not unusual back then to offer both 16-bit and 32-bit builds of the same program, built from the same source code).



Cool exe's don't change


Ever. So cool.


You can use otvdm to run 16-bit Windows applications directly under modern Windows. It emulates the CPU and translates all the Win32 API calls.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: