13 June, 2010

8 Easy Steps to Run Turbo C in Windows Vista

Posted by Unknown | 13 June, 2010 | Category: |

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.

Currently have 0 comments:


Leave a Reply

hit counters