#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0

    loading exe in dos


    I have a boot disk and can create very basic C++ applications. I want to load a exe in dos, but it cannot be loaded. Is there a way to open it without installing windows or any other large operating system?
  2. #2
  3. I'm Baaaaaaack!
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    5,538
    Rep Power
    244
    Is your compiler for DOS? The DOS world is very different from the Win32 world! Be sure you are compatible.

    My blog, The Fount of Useless Information http://sol-biotech.com/wordpress/
    Free code: http://sol-biotech.com/code/.
    Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html.
    Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html.
    LinkedIn Profile: http://www.linkedin.com/in/keithoxenrider

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0
    so what compiler would be compatable for DOS?
  6. #4
  7. I'm Baaaaaaack!
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    5,538
    Rep Power
    244

    No DOS is good DOS


    I don't know much about the DOS world other than memory management is a nightmare. Why are you working in DOS? If you have an old / under powered system, install Linux and learn to program on a real OS. Since even embedded chips are now using 32 bit multitasking operating systems, there is very little (read none) benefit in learning DOS's tortuous 16 bit world. I strongly suggest you look around for some other freeware that you can use. If you are really using DOS for your OS and do not have even Win95 to use instead, then you are going to spend a great deal of time and energy becoming an expert on a system that is completely obsolete. You can get Linux boot disks and learn to program there. There are tons of freeware (GNU is a great compiler) for Linux, but there is also lots of freeware for Win32, you just have to root around a bit more for it.

    So, why are you working in DOS?

    My blog, The Fount of Useless Information http://sol-biotech.com/wordpress/
    Free code: http://sol-biotech.com/code/.
    Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html.
    Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html.
    LinkedIn Profile: http://www.linkedin.com/in/keithoxenrider

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Location
    Flint, MI
    Posts
    328
    Rep Power
    12
    If you absolutely must use DOS, Borland has a free 16 bit C++ compiler that you can download. But the advice others has given is correct.

    Unless you are restricted to a 16 bit processor like the 8086 or 8088, you will have an easier time using a 32 bit operating system like Linux. Linux without X-windows (the GUI) is very fast, even on these old machines. FreeBSD or OpenBSD also work very well on these machines, and FreeBSD is very easy to install.
    Clay Dowling
    Lazarus Notes
    Articles and commentary on web development
    http://www.lazarusid.com/notes/

IMN logo majestic logo threadwatch logo seochat tools logo