8 Easy Steps to Run Turbo C in Windows Vista

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.
This entry was posted in Programming. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

77 Comments

  1. Posted August 16, 2010 at 11:02 pm | Permalink

    1. for graphics problem, Copy EGAVGA.BGI file from BGI folder to BIN.
    2. for header files problem , you should mount properly. According to this link
    http://h1.ripway.com/preet148m/

  2. Dalbir Singh
    Posted September 9, 2010 at 4:23 pm | Permalink

    m getting problem while compling my program.
    Its giving header file error while i have done with each step carefully . Please suggest me how to get rid out of it.

    Which path i have to give in enivironment option so that i can compile my program.

  3. Posted September 18, 2010 at 7:22 pm | Permalink

    For Compling problemn::

    You will need to change “option->directories” 1. Include Directories 2. Library Directories from “c:\tc” to “c:\”

  4. vikki
    Posted November 9, 2010 at 9:24 pm | Permalink

    i use dosbox but i find trouble with full screen . i get c program centered in screen and the rest are black in full screened dos box.the font is small to read.how could i over come it?i work in a laptop with 15 inch screen.

  5. yogesh Patil
    Posted November 16, 2010 at 3:14 pm | Permalink

    I have been install Turbo c++ also written program but the compilation gives errors
    like header file

  6. yogesh Patil
    Posted November 16, 2010 at 3:16 pm | Permalink

    I have been install Turbo c++ also written program but the compilation gives errors
    like header file

  7. Kamlesh Gadbail
    Posted November 25, 2010 at 3:21 pm | Permalink

    It is giving fatal error. That is unable to create obj of program. When I am trying to compile C program. What is the solution for that?

  8. Bags
    Posted December 15, 2010 at 9:34 pm | Permalink

    hello…am unable to type backslash or ” in dosbox..
    i have googled alot on it..changed the keyboardlayout in the dosbox config file …but nothing helps…can you help me figure it out..

  9. PRANAV KAND
    Posted January 4, 2011 at 4:59 pm | Permalink

    Hello friends,
    i installed dosbox but it gave me error during writing program.
    Unable to type “<" and some characters……….
    So Can anybody solve this error……………

  10. mithra
    Posted January 6, 2011 at 9:58 pm | Permalink

    hey , installed dos box trying to program, but have problem with flower brackets , i tried changing key board lay out and solved back slash problem but i dont find the option of flower braces in dos box key mapper .pls help me out

  11. Posted January 22, 2011 at 10:56 pm | Permalink

    my problem is that in dos ,when i open tc window then while executing file it show errors like is not there,conio.h is not found ,getch should be prototype
    .
    please suggest me some solution

  12. atul chinchole
    Posted January 27, 2011 at 2:55 pm | Permalink

    I will try the turboc working in full mode in windods7 but some error are occur so pls help me.

  13. PrAsHaNt JiNdaL
    Posted February 13, 2011 at 1:48 am | Permalink

    i am not able to understand the last step….
    c:\dir tc..
    please attach a vidio for better understanding.
    THANK YOU

  14. sam
    Posted March 27, 2011 at 11:10 pm | Permalink

    i am not able to understand the last step….
    c:\dir tc..

  15. lucky
    Posted March 28, 2011 at 6:15 pm | Permalink

    i want to run turbo c on my windows 7 64 bit machine, through which i can write my own programs.please i want your help instantly.

  16. Posted April 6, 2011 at 7:11 am | Permalink

    lol its so difficult olo \]

  17. Posted April 8, 2011 at 6:00 pm | Permalink

    Very helpful Article!!!
    Finally working with dosbox after so many efforts !

  18. bala
    Posted June 10, 2011 at 9:47 pm | Permalink

    thankyou….

  19. arun
    Posted June 12, 2011 at 10:34 pm | Permalink

    install c-free, then turbo c++ will run smoothly

  20. kiran
    Posted June 13, 2011 at 8:32 pm | Permalink

    i m not able to understand the last step
    c:\ dir tc

  21. aj
    Posted June 18, 2011 at 7:54 pm | Permalink

    it doesnt show up after zero errors in compiation.it closes :(

  22. Sahil
    Posted June 20, 2011 at 5:40 pm | Permalink

    It is nice article but i m not able to run the program ,it shows error that unble to create obj.cos please help me it wll be ur most kindness

  23. Punit
    Posted July 10, 2011 at 5:18 pm | Permalink

    Change d directory if u do hav any problem related with errors………………

  24. sandy
    Posted August 5, 2011 at 8:08 pm | Permalink

    i am working with turbo c++ on win 7 in small screen mode….the programs worked perfectly previously…but now when i press ctrl+f9 i am getting an error ” not an exe: tcdef.lib “….help me

  25. lal
    Posted October 21, 2011 at 11:29 am | Permalink

    I hav successfully installed and i m run Turbo C in Dosbox but my system hang and mouse stop working

  26. lal
    Posted October 21, 2011 at 11:30 am | Permalink

    I hav successfully installed and i m able run Turbo C in Dosbox but my system hang and mouse stop working

  27. MANORANJAN DASH
    Posted November 9, 2011 at 10:53 am | Permalink

    Thanks
    It really works

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>