Upgrade from MS C V7.0 to VC++ 6.0
-
Hi, I have a dos program, developped with Microsoft C V7.0 for the DOS environnement. I would like to recompile it with Visual C++ 6.0, but I have no idea if it is possible. Anyone already did that ? Is Visual C++ able to compile DOS programs, in C ? Another question : In this C program, I noticed an enum like this : enum day { monday, tuesday, wednesday, thursday, monday } ...with twice the same name (monday). I believe this is not allowed in C++. Is it in C ? Thank you for any help, Jerome
-
Hi, I have a dos program, developped with Microsoft C V7.0 for the DOS environnement. I would like to recompile it with Visual C++ 6.0, but I have no idea if it is possible. Anyone already did that ? Is Visual C++ able to compile DOS programs, in C ? Another question : In this C program, I noticed an enum like this : enum day { monday, tuesday, wednesday, thursday, monday } ...with twice the same name (monday). I believe this is not allowed in C++. Is it in C ? Thank you for any help, Jerome
If I remember correctly Visual C++ 1.52 was the last Microsoft compiler that allowed you to generate DOS apps. I don't think version 6 will allow it, it is a Windows only compiler. Michael :-)
-
If I remember correctly Visual C++ 1.52 was the last Microsoft compiler that allowed you to generate DOS apps. I don't think version 6 will allow it, it is a Windows only compiler. Michael :-)
Thanks for your answer ! I have another question, thus. What is a 'console application' with MS VC++ &.0 ? I always thought it was a 16 bit dos application ! It is then not possible to developp a 'console application' to run it under dos ? Thanks, Jerome
-
Thanks for your answer ! I have another question, thus. What is a 'console application' with MS VC++ &.0 ? I always thought it was a 16 bit dos application ! It is then not possible to developp a 'console application' to run it under dos ? Thanks, Jerome
A console application is NOT a DOS application. It is a Win32 application that runs in a console window (which again is NOT to be confused with a "DOS window", event though it seems to be one). Win32 console applications can be written nearly the same way as DOS applications were written, with the added functionality of a 32-bit platform. No memory problems, no f***ing segments, memory models and similar crap. You can use Win32's advanced system functions, long file names, whatever. Such an application does NOT run under DOS, since it is a true 32-bit Win32 application, but it will run fine in either Win32 version's console window.
-
Hi, I have a dos program, developped with Microsoft C V7.0 for the DOS environnement. I would like to recompile it with Visual C++ 6.0, but I have no idea if it is possible. Anyone already did that ? Is Visual C++ able to compile DOS programs, in C ? Another question : In this C program, I noticed an enum like this : enum day { monday, tuesday, wednesday, thursday, monday } ...with twice the same name (monday). I believe this is not allowed in C++. Is it in C ? Thank you for any help, Jerome
Claudius is right. But all is not lost. For your situation (if you simply want your DOS ap compiled to run in a windows box) I would create a console ap, then add your dos ap files to it (taking care to use the new main()). Depending on what your dos ap does and needs to access, most if not all your code should compile. I did a similar thing a while ago with a dos comms ap and a few of my old maths libs, the only thing I changed was the way it actually captures the port (other direct hardware stuff and Windows will clip your ear and make you stand in the corner). As for any display part of your ap, the Win console actually handles that quite well, fixed fonts etc, line graphics is ok. If you used any of the old graphics lib extensions I'm afraid your compiler or Windows (depending on which parts you used) will tell you where you can stick 'em. The apps/libs I brought to Windows generally had very little to do with the display, but a bit of tidying up sorted some minor screen printing problems, except one. That was with hardcopy printing itself, in my case alignment was based on fixed fonts (I'm a UNIX man ok!, only tthe very young use variable fonts in UNIX). Windows tried to make it prettier with TT fonts, hardly a major thing, unless your ap has to print reems of stuff in a legible way. We do it for the joy of seeing the users struggle.
-
Claudius is right. But all is not lost. For your situation (if you simply want your DOS ap compiled to run in a windows box) I would create a console ap, then add your dos ap files to it (taking care to use the new main()). Depending on what your dos ap does and needs to access, most if not all your code should compile. I did a similar thing a while ago with a dos comms ap and a few of my old maths libs, the only thing I changed was the way it actually captures the port (other direct hardware stuff and Windows will clip your ear and make you stand in the corner). As for any display part of your ap, the Win console actually handles that quite well, fixed fonts etc, line graphics is ok. If you used any of the old graphics lib extensions I'm afraid your compiler or Windows (depending on which parts you used) will tell you where you can stick 'em. The apps/libs I brought to Windows generally had very little to do with the display, but a bit of tidying up sorted some minor screen printing problems, except one. That was with hardcopy printing itself, in my case alignment was based on fixed fonts (I'm a UNIX man ok!, only tthe very young use variable fonts in UNIX). Windows tried to make it prettier with TT fonts, hardly a major thing, unless your ap has to print reems of stuff in a legible way. We do it for the joy of seeing the users struggle.
Thanks to all of you who helped me with this problem ! I learned a lot with your answers ! Thanks again, Jerome
-
Hi, I have a dos program, developped with Microsoft C V7.0 for the DOS environnement. I would like to recompile it with Visual C++ 6.0, but I have no idea if it is possible. Anyone already did that ? Is Visual C++ able to compile DOS programs, in C ? Another question : In this C program, I noticed an enum like this : enum day { monday, tuesday, wednesday, thursday, monday } ...with twice the same name (monday). I believe this is not allowed in C++. Is it in C ? Thank you for any help, Jerome
just tip: try search borland, watcom or similar sites (gnu.org?) they can give free older or command-line-only compilers (but dos ones? send reply if you will find any) (enum - i think it has to be wrong everywhere, minimaly strong "redefinition warning" (or it was old-compiler's bug?)) t!