- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is anyone aware of why the FORTRAN exe file contains a line at the top that says == This program cannot run in DOS MODE?
It is 25 years since people used DOS?
Interesting
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
Answered my own question a few minutes later -- the DOS stub is at the start of all EXE programs and gives an error message if executed
Interesting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is a consequence of backward compatibility. DOS and extended applications had to cohabit for a while so this stub was mandatory to avoid launching a mismatched application.
There are many other things like that under Windows and even I think Linux.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page