Click to See Complete Forum and Search --> : converting a dos file to a windows file
jonnyjonny
May 16th, 2003, 10:42 AM
i shall be highly obliged if anybody can tell me how to a convert
a 16 bit dos executable file to a 32 bit windows executable file
the 16 dos file is obtained when i compile my C code in its
turbo or borland IDE .
Sam Hobbs
May 16th, 2003, 02:30 PM
It can't be done without doing an immense amount of work. The format of the DOS executable file is one thing that needs to be converted but the calls to the operating system must also be converted which requires de-assembling and replacing those portions.
lord loh
May 18th, 2003, 10:10 AM
Can it be done by re-compiling the code on a different compiler ?
Sam Hobbs
May 18th, 2003, 11:27 AM
Yes and there have been many previous questions in this forum about doing that and many previous answers. There are a few compilers that can be used.
One is Visual C++ version 1.52 which is available from Microsoft but I don't know how to get it.
Another one I think is DJGPP (http://www.delorie.com/djgpp).
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.