Sorry, there seemed to be a problem in the tutorial described before.
There was a problem loading the includes file in turbo c which was due to directory mismatch in the turbo c installation.keeping the tc folder in a folder with name dosbox and mounting the folder dosbox as c: would fix the issue.The tutorial has been updated to fix the issue.
Sorry for any inconvenience caused.
Today I noticed that Win7 doesn’t support Turbo C graphics.
Win7 doesn’t support the fullscreen mode for DOS applications.
That was fine, just ignoring the error would start turbo c in window mode. But today when I tried running the program with graphics, the program compiled without any errors but on running the program displayed the same error and ignoring it didn’t do any good. Instead I get another error
So I tried changing some options on turbo c but all in vain.couldn’t make it work. And then I realized, DOSBox must be available for windows as well.(DOSBox is an DOS emulator. I had been using DOSBox to test my programs on turbo C on linux)
So the solution to this problem would be to install DOSBox on your win7. With DOSBox you can run turbo C on fullscreen mode as well. So download the latest DOSBox and start using Turbo C on fullscreen.
Setting Options on DOSBox:
In order to change the options of DOSBox, goto the DOSBox options menu in start menu.It will open the dosbox .conf file on notepad. The conf file is well documented. And there’s no need for much change.change the fullscreen valu from ‘false’ to ‘true’ if you want to run dosbox on fullscreen mode
You need to first mount the folder containing turbo c to be able to run it.
So on starting DOSBox type “mount c c:dosbox” assuming your turbo c installation files are at “c:dosboxtc”. Then change the current working drive from “z:>” to “c:>” by typing the command “c:” and next type “cd tcbin” and then “tc” to run the Turbo C. VOILA!! that’s it!!! your very own TC in fullscreen mode in Window 7
typing all these commands could be tedious and hard to remember to some of you.so we can autoexecute these commands.At the end of the conf file(i guess u know how to do it.but in case you forgot, open it from the DOSBox options menu from start menu). and at the end of the file under [autoexec] heading paste the following lines
mount c c:dosboxc:cd tcbintc
15 responses to “Turbo C graphics on Win7 [Updated]”
it not working….
the error are come
“invalid drive or directory”
please give me solution that….
would you please be precise about the error? where did you get this error?
i have installed DOSBOX but i m unable to run any graphics programs as it gives me error saying that “Unable to open include graphics.h “
really sorry for the late reply kalpana
the error you mentioned is probably due to the ‘turbo c’ installation rather than with the dosbox.
check if ‘graphics.h’ is present in the turbo c include directory
the error is in the Directory settings of TC…..
Change Include Directories to – ..INCLUDE
and Library Directories to – ..LIB
wen i give cd comand to go to tcbin dey say cant change directory
was the mount successful?
and did you copy your tc folder to “c:dosbox” ?
i was really confused how to make use of turboc to support graphics in windows 7. your detailed explanation here made me come out with comfortable answer. thanks a lot….:)
i now installed dosbox and enjoying working with graphics in full screen mode.
there is an application called TurboC Patcher for windows , which installs or fixes any existing TC installation on windows vista or 7 (x86 or x64) .
you can use it for free 🙂
its just a one-click application , gets you everything done by itself 🙂
you can download it form here :
Thank you very very much it works
your welcome 🙂
i think is a good idea to use the well known softpedia to download the latest version:
i dont know if the former link is as updated as this one on softpedia 🙂
Thank you very much Hossein
Thanks a lot! A very simple code it was! I added the coordinates of the car i had drawn previously to your coding and it was beautiful! Thank you!!
sorry, posted wrong comment previously.
Thanks a ton! the windows patch mentioned in the above comment worked fine!!