Recompile a DOS C program to MS Visual C++ for Windows 7 (or 10)
Posted on 2016-09-27
Due to a contract restart, I have to update, compile and run a DOS C program on WIndows 7 computers.
I have the C code in a text file. When I have tried running the utility under compatibility mode, I get the following error: "This version of the file is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher."
Is there a simple way to copy and paste the C code into Visual C++ 2015 and target the compilation to WIn 7 which acts like DOS?
The DOS utility generates the burn file for PROMs and also the documentation files for the PROMs.
I would imaging that the execution of the utility under Win 7 would simply open a Command Prompt like window which would act like a DOS screen. There should be no real issue in writing the documentation files as they are simply text files.
Any suggestions greatly appreciated.