1 Attachment(s)
need conversion code form dos to C++
hi everyone. I have a code in dos which is running perfectly. when i tried the same in C++ i am not getting the correct result.
i am giving my dos code here if any one can help in converting this from DOS to C++ i am very thankful
I am attching a zip file in which the DOS C file and related files are there.
Re: need conversion code form dos to C++
Quote:
Originally posted by sam_sun_401
hi everyone. I have a code in dos which is running perfectly. when i tried the same in C++ i am not getting the correct result.
i am giving my dos code here if any one can help in converting this from DOS to C++ i am very thankful
I am attching a zip file in which the DOS C file and related files are there.
There is no such thing as translating from DOS to C++. DOS is an operating system, C++ is a programming language.
If what you mean is that you wrote a program in C++ for the DOS operating system and now you want to compile and run the same program for some other operating system, then you are making sense. If this is what you mean, the code that you provided is making direct calls to the hardware. Once you do this, all bets are off as to how another operating system handles these things. For a 32-bit OS, you have to resort to other ways to read or write to hardware. This takes research on your end, since each OS does things differently. For Windows, there is DeviceIOControl, for Linux it is something else.
But in general, once you start to use BIOS or interrupts (as your program does), it it will more than likely *not* work on another OS, and in all likelihood, crash.
Regards,
Paul McKenzie