This tutorial is about running a turboc compiler in windows vista in full screen mode.
i know ! running decade old turbo c compiler in vista doesnt make any sense when you have much advanced compilers.but there are some cases where you have to run turboc on your vista machine,just because your university doesnt use any other advanced compiler other than your grandpa’s compiler “turbo c”.
Here is a neat explanation provided by our reader Saikanth.
Please look at the alternatives for Turbo C++ IDE before reading this post. Continue reading it only if you want to use BGI graphics (consider Allegro Gaming Library if you want an easy to use Graphics solution for C\C++) or for code compatibility for your Textbook. You might consider changing your textbook if your University\College allows for new code. Continue only if you have no other option than using the DOS based Turbo C++ 3.0.
You will want to follow the tutorial if you plan to use Linux, Mac OS, Windows Vista or Windows 7 in but have to use Turbo C++ in full screen environment so you are stuck with Windows XP or older version of Windows.
Installtion Of Dosbox
Dosbox is an x86 emulator with dos. It is available for Linux, Windows and Mac. It can be used to run legacy DOS applications and Games. We will use to run Turbo C++.
Dosbox may be present in the repository if you use Linux. Use your package manager to install dosbox.
Windows and Mac installers\binaries can be found in the official website.
One-Time Setup
Place the installed Turbo C++ or Turbo C++ Setup in a folder. You might want this folder to mount as drive inside the dosbox. For that find the dosbox.conf file and add appropriate lines in the [autoexec] section. For example, if you want to mount a directory MyDosFiles as c:, then you must write the following in the dosbox based on your OS. For Windows (Vista or 7) you will need to add the following lines:
mount c c:\MyDosFiles
if the directory is in c:\
In Linux and Mac, it will be something like:
mount c /home/username/MyDosFiles
if the directory is in /home/username i.e. the home directory.
If you just plan to use Turbo C, you might as well launch the Turbo C++ IDE each time you start dosbox by adding folowing extra lines in dosbox.
c:
cd tc
tc.exe
Here I have assumed that you have installed version of Turbo C++ in the tc directory in MyDosFiles.
Also, you might want to add
fullscreen = true
at the top of the dosbox.conf file to start it in full screen.
Now, you can Launch dosbox and enjoy.
To quit, you will need to quit the IDE and type in exit at the prompt.
Hope this helps. Please post back comments and feedback. Also share if you get stuck somewhere.
if you have any difficulty following above tutorial ,you can follow the tutorial given below or post comments.
Another tutorial:
so i assume you have turbo c compiler in your vista machine.when you double click on tc.exe,you get the message as shown below.
“this system does not support fullscreen mode.choose close to terminate the application”. now if you click ignore you will see a very small screen ,which wont help much in writing programs.
how to run turbo c then?
step 1: go and download dosbox software here. install the downloaded software.
step 2:copy all your turboc files in one folder in c drive.i mean copy all the files in the bgi,include folders,and all other folders into a new folder.you should have all those files under a single folder.
step 4: run dosbox
step 5: at the prompt in dosbox window ,type “intro mount”
step 6: type mount c c:\tc ( if “tc” is the nameof folder you copied all files of turbo c)
step 7: type “c:”
step 8: type “dir’ in front of c:\ and type “tc”
that should be all.select ok at the prompts that pop-up .and the next time you start turboc from dosbox ,press alt+enter.
happy programming.!
- you cant use keyboard shortcuts like ctrl+f9 and others ,you will have to use mouse for that.
- dont forget to clear the text under options>>directories in turboc before you compile the program.

47 Comments
hi,
thanx for the help but just tell me one thing that, how to start tc from dosbox ?
run dosbox from your desktop or programs.then type “intro mount”.you will get instructions to mount your tc folder.
Is there a way to run a c++ program exe, developed on turbo c on windows xp? normally the “this system does not support fullscreen mode.choose close to terminate the application” error pops up.
i dont understand why you are not able to run an exe file on WINDOWS XP developed using turbo c++.i have done it gazallion times .send me the code ,may be i can find what is causing that problem.
i ran turbo c through dos box in windows vista but still it says unable to open include file…i have even changed th dirctory path but still it shows the same error…please suggest something
tell me how you changed the directory and to what did u change by typing it below
hey after running DOSBox .72 m unable to type backslash i dune know y?
ma keyboard is workin fine but …. in this case !!!! help me ot plz thax…
dosbox does not include include files how do i include them?
copy paste all files in the include folder to bin folder.mount the bin folder ,that should work.
how to type backslash in the dosbox console??
thank you iwill try it now
hey i cannot read/write files in C++ using DOSBOX in Vista
i mean whenever i run my program,,,,,
it says …. “…cannot create abc.obj “
i can type backslash in the dosbox console . How can i do it ?? please answer for me !!!
I have use the steps as given by you to access the turboc on windows vista( version sp1) but could not be succed. there is not full screen of truboc compiler still now. please help me.
Thank you.
thankx for dosbox.
still i am unable to ren c program. it shows message unable to include cos.obj .
pl help me . its urgent.
i think you havent cleared the directories under options
I have copied and pasted all the files from include to the bin folder, the alt+f9 done successfully, but when i run the program by ctrl+f9, the whole window closed. whats the problem?
did u try compiling using mouse? does it repeat again?
i have tried installing DOS box….but actually can u guys give me an example how to run a “hello world” program ……coz when i try to run “tc” —-its giving a prompt message as windows doesn’t support x64 bit computer some kind of message …..
it has come to my notice that the following tutorial is not sufficient since i see so many requests to clarify things.
i will put the screen shots by this sunday.
sorry for the inconvenience.
hello sir,
i followed all steps in sequence ,but i get a problem..
whenever i try to run (by mouse)it gives error unable to open file COS.OBJ
plz help me out
Thanks
Hey people…
the instructions given above is kinda stupid… lemme give you clear instructions
first copy tc file to c: ….
open dos box
then type “intro mount”
then type “mount c:\tc\bin”
then type “c:”
then type “tc.exe”
your file will open…press alt+enter
it will enter full screen
I complied program in turbo C ,the alt+f9 done successfully, but when i run the program by ctrl+f9, he its giving a prompt message “Not an EXE” .
error is”Building filename\TCDEF,LIB”
Please help.
thanks
Hi guys this is sai. I have some steps to run a c program from turboc
First goto Turboc directory there will be an exe file name Tc.exe. Then open it check for the directories path and as well as the include header files path in options-> directories. then open a c program press alt+f9, if any errors found then resolve it after then press only f9 to make an exe file as well as obj file, after then press ctrl +f9 to output. if an output is not visible then press alt+f5 for out put. If u any one of them having doubts regarding this just mail to me to the given address rsaikanth@yahoo.com or call to me at 9963333297
hey anybody can compile a “c graphics program” using dosbox please help
hey after running DOSBox .72 m unable to type backslash i dune know y? ma keyboard is workin fine but …. in this case !!!! help me ot plz thax…plz gve me solution 4 that……
thnks gd post, solved my problems real fast, best method to include all files other then changing directory path to the virtual…………….
thanks
I tried the below commands…
1. Opened the Dosbox
2. Intro mount
3. mount c c:\tc\bin
4. c:
5. tc.exe
It opened the program but i when i try to compile.. it is giving the message saying that “unable to include stdio.h.
Hence i am unable ot urn it
Hi my OS is vista i am able to write in C: but not ‘\’ this sign…..then i discovered it could be done with combination of ‘ctrl+}’ but it goes on next line directly pls help….n if i give it as
c:\
tc
it shows error ..help me…..
rahil_lakhani8@yahoo.com
Complete guide on how to run c on vista and windows 7
http://www.engineersneed.com/index.php?option=com_content&view=article&id=62:how-to-run-turbo-c-for-windows-vistawindows-7&catid=42:ideas&Itemid=67
Hello Organizer.
I have done every thing to run a programme.
They were running absalutely fine until i used
they compiled , they run, but didnt showed me the output of the figure.
I Hav windows Vista OS.& m using dosbox 2 run my programms.
I would b thankful for ur reply.
graphis.h
THANK GOD…..
THANK U SOOOOOOOOOOOOOOOOOOOOOOOOO MUCH………….
now i can use turbo c in full screen mode, bt now the problem is i cn’t use important symbols eg. ( “, { ,}).. wat should i do now??
hey admin, can u tell me how to run Turbo C on Windows 7 (64bit)
the error msg is…
“The version of this file is not compatible with the version of Windows you’re running. Check your computer’s system infomation to see whether you need an x86 (32-bit)or x86 (64-bit) version of the program, and then contact the software publisher”
plz do reply….
thx
Please look at the alternatives for Turbo C++ IDE before reading this post. Continue reading it only if you want to use BGI graphics (consider Allegro Gaming Library if you want an easy to use Graphics solution for C\C++) or for code compatibility for your Textbook. You might consider changing your textbook if your University\College allows for new code. Continue only if you have no other option than using the DOS based Turbo C++ 3.0.
You will want to follow the tutorial if you plan to use Linux, Mac OS, Windows Vista or Windows 7 in but have to use Turbo C++ in full screen environment so you are stuck with Windows XP or older version of Windows.
Installtion Of Dosbox
Dosbox is an x86 emulator with dos. It is available for Linux, Windows and Mac. It can be used to run legacy DOS applications and Games. We will use to run Turbo C++.
Dosbox may be present in the repository if you use Linux. Use your package manager to install dosbox.
Windows and Mac installers\binaries can be found in the official website.
One-Time Setup
Place the installed Turbo C++ or Turbo C++ Setup in a folder. You might want this folder to mount as drive inside the dosbox. For that find the dosbox.conf file and add appropriate lines in the [autoexec] section. For example, if you want to mount a directory MyDosFiles as c:, then you must write the following in the dosbox based on your OS. For Windows (Vista or 7) you will need to add the following lines:
mount c c:\MyDosFiles
if the directory is in c:\
In Linux and Mac, it will be something like:
mount c /home/username/MyDosFiles
if the directory is in /home/username i.e. the home directory.
If you just plan to use Turbo C, you might as well launch the Turbo C++ IDE each time you start dosbox by adding folowing extra lines in dosbox.
c:
cd tc
tc.exe
Here I have assumed that you have installed version of Turbo C++ in the tc directory in MyDosFiles.
Also, you might want to add
fullscreen = true
at the top of the dosbox.conf file to start it in full screen.
Now, you can Launch dosbox and enjoy.
To quit, you will need to quit the IDE and type in exit at the prompt.
Hope this helps. Please post back comments and feedback. Also share if you get stuck somewhere.
Thank you very much for your valuable input Mr.Saikanth.I hope your tutorial will solve all the un-answered queries.
hi sir,
i have installed dosbox and mounted drives.
when I compile a graphics program in ‘c’ it compiles successfully.
but when I run it,it displays BGI ERROR: GRAPHICS NOT INITIALISED (use initgraph).
but i have used initgraph in the program…..
plz tell me what to do,,,,,,
i am using turbo c compiler.
hey i have installed the dosbox after running th command “intro mount” for the next command am not being able to type “:” as well as “\” , i am using windows 7 what shud i do plz suggest?
i was able to use c and graphics.h
i have installed dosbox and mounted drives.
when I compile a graphics program in ‘c’ it compiles successfully.
but when I run it,it displays BGI ERROR: GRAPHICS NOT INITIALISED (use initgraph).
but i have used initgraph in the program…..
plzz do reply soon
hey! thanx a very good post,
just dont forget to add each and every file that ur source file is using(files in include directory or graphic files) in bgi directory in bin folder.
m sure this will help u too.
Hello friends, well I use TC++ in Vista(without Dosbox).By changing the properties,I managed to get it full-screen, but still there is a fatal error.Even when I type my program ditto from the textbook, I get this error-Unable to open file ‘iostream.h’and about other header files.2nd error is about the compiler not being able to create the.obj file.
Now a friend of mine suggested that I go to Options/directories and change the Path name of the include,source,output and library files, but I don’t know what exactly to specify and how.Please suggest some tips to help me.
By the way, my TC++ applicatons path is :’C:TC’.I will be very very thankful if u help me friends.
You know I am a real duffer and I suppose its a good thing to help those less blessed than us.
very very thanks to admin ,,it is da simple way to run c++,by using the given tutorial ,
any one can enjoy there practice wid help of it.so persons who are facing such type of problems please please please follow the instruction ,and you will enjoy further
Hello,
I want know how to istall tc in window xp operating system. give best me solution