m facing problem while running...computer graphic program on turbo c++
its giving me errors like "ntvdm has perfomed an illegal operation" or
"16 bit ms dos subsystem error"
The errors are telling you that Turbo C++ is almost 20 years old and it is time to move to a newer compiler that does not need a DOS emulator to run your programs in 16 bit mode. ;) Really, there is no point in learning to do graphics with Turbo C++ because you will not use it in the real world anymore. The only reason it still works is because M$ is hell bent on having backward compatibility to the beginning of time.
The errors are telling you that Turbo C++ is almost 20 years old and it is time to move to a newer compiler that does not need a DOS emulator to run your programs in 16 bit mode. ;) Really, there is no point in learning to do graphics with Turbo C++ because you will not use it in the real world anymore. The only reason it still works is because M$ is hell bent on having backward compatibility to the beginning of time.
dude i know... even m not interested ..but forced to because its in our MU syllabus...
so plz post if u have any solution...or chuk it
The error is very generic. It could be a problem in your code. It could be a problem with your compatibility settings in either the compiler or the exe. Or it could just be one of those random errors that creep up when you use ancient software with modern operating systems. M$ tries to be compatible with old software and hardware, but that does not mean it always succeeds.
Let me guess: you are running Windows XP, Vista, or 7, right?
Make sure your code is right by using one of the graphics samples that come with the compiler. It should be in the documentation. If you are sure the code is right, make sure that you are running Turbo C++ and the compiled exe under the right compatibility settings by right clicking the exe, going to properties and checking every check box in the compatibility tab.
If none of that works, you can downgrade your OS. Virtual machines make it easy to run Windows 95 or something like that so your OS fits the programs you are writing.
You should not even need to be here asking about this. If your teacher forces you to use a compiler that does not fit the OS, it is his responsibility to help you get it running. You are paying for the class, so get your money's worth.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.