Ms-dos

This is a discussion on Ms-dos within the Windows Programming forums, part of the Platform Specific Boards category; MS-DOS related thread...

  1. #1
    Registered User Obscenity's Avatar
    Join Date
    Aug 2012
    Location
    Tasmania
    Posts
    6

    Exclamation Ms-dos

    MS-DOS related thread

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    2,227
    ... and?

  3. #3
    Registered User Obscenity's Avatar
    Join Date
    Aug 2012
    Location
    Tasmania
    Posts
    6
    I want to know how I can obtain a makefile for .COM extention if i have to do that because i want to make an MS-DOS Application. Help?

  4. #4
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,616
    You can't.

    You can tell the linker to output a flat binary though.

    EDIT: MinGW's tools aren't good for that, mind.
    Devoted my life to programming...

  5. #5
    Registered User Obscenity's Avatar
    Join Date
    Aug 2012
    Location
    Tasmania
    Posts
    6
    Quote Originally Posted by GReaper View Post
    You can't.

    You can tell the linker to output a flat binary though.

    EDIT: MinGW's tools aren't good for that, mind.
    Whats the command?

  6. #6
    Registered User
    Join Date
    May 2010
    Posts
    2,693
    What compiler are you using?

    What operating system will this program be using, and the exact version?

    Jim

  7. #7
    Registered User
    Join Date
    Jun 2005
    Posts
    6,198
    16 bit .exe files ARE MS-DOS applications, without being converted to a .com file. The .com file was just an alternative executable format.

    Assuming you have a 16 bit .EXE file that can run under MS-DOS, then 16-bit development environments (compiler and linker in combination) would output such an executable by default. MS-DOS provides a utility called exe2bin. The command line "exe2bin filename.exe filename.com" would take filename.exe and convert it to an equivalent filename.com.

    Not all executable files can be converted. The input executable had to be a 16-bit executable (32-bit executables, such as those generated by 32-bit development environments cannot be converted). One side effect of that is that the resident code (aka code AND data) could not total to more than 64K. IIRC, there were also other constraints, such as no overlays in the executable, no use of high or extended memory, and a few other constraints.
    Right 98% of the time, and don't care about the other 3%.

  8. #8
    Registered User
    Join Date
    Sep 2012
    Location
    Birmingham, UK
    Posts
    3
    I'm writing something for a command line console - would this count as DOS programming as I have a quick question and I'm not sure if it'll directly relate to MS-DOS.

    Edit: I've just tested it with DOS-Box and it won't run, so I guess it's not a true MS-DOS problem, sorry guys.

    Ta!

    S.
    Last edited by S_Bebbers; 09-04-2012 at 02:18 PM.

  9. #9
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,616
    Quote Originally Posted by S_Bebbers View Post
    Edit: I've just tested it with DOS-Box and it won't run, so I guess it's not a true MS-DOS problem, sorry guys.
    Actually it run something, didn't it? "This application cannot be run in DOS mode" : This is an entire DOS program inserted in ALL Windows executables.
    Devoted my life to programming...

  10. #10
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,424
    Quote Originally Posted by S_Bebbers View Post
    I'm writing something for a command line console - would this count as DOS programming as I have a quick question and I'm not sure if it'll directly relate to MS-DOS.
    No, it would not.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21