Mar 16, 2011

Use C++ In Windows 7 32/64 Bit With


Turbo C++ can be install on any system by the tools named DOS Box.

DOS Box is fantastic free toolfor using Turbo C++ compiler. It can easily be installed and is as simple as any another tools.

The fact is that DOSBOX creates a virtual drive whose existence is in the hard disk virtually and after that we open the compiler and  edit the  setting page, DOSBOX dials the given command  automatically and open the TC++  inside it.

To understand what a virtual drive is, here is an example:

You all know the hard disk which is a common hardware for storage. Suppose a hard disk has 500GB. People often make partitions on their hard disk of certain size. Lets say this hard disk has 4 partitions, so in reality the size of hard disk is 500GB but virtually 4 drives exist on the same hard disk of certain size as seen by the user and controlled by Operating System. So we can say that 4 drives exist virtually on this hard disk.



But at first you have download this  tool which isrequired for  installation….

Click here to download DOSBox ver0.74

Click here to download TC.

1. Install the software DOSBoxver 0.74 :
2. Create a folder,for example „Turbo“ (c:\Turbo\)
3. Download and extract TC into the Turbo folder (c:\Turbo\):
4. Run the DOSBox 0.73 from the icon located on the desktop:

5. Type the following commands at the command prompt [Z]: mount d c:\Turbo\ [The folder TC is present inside the folder Turbo]
Now you should get a message which says: Drive D is mounted as a local directory c:\Turbo\

6. Type d: to shift to d:
7. Next follow the commands below:
cd tc

cd bin

tcor tc.exe [This starts you the Turbo C++ 3.0]


8. In the Turbo C++ goto Options>Directories> Change the source of TC to the source directory [D] ( i.e. virtual D: refers to original c:\Turbo\ . So make the path change to something like D:\TC\include and D:\TC\lib respectively )
To start TurboC++ in the DOSBox automatically:
You can save yourself some time by having DOSBox automatically mount your folders and start TurboC++:
For DOSBox versions older then 0.73 browse into program installation folder and open the dosbox.conf file in any text editor. For version 0.73 go to Start Menu and click on “Configuration” and then “Edit Configuration“. Then scroll down to the very end, and add the lines which you want to automatically execute when DOSBox starts.
Automatically mount and start Turbo C++3.0 in DOSBox ver 0.73:


Scroll down to the very end, and add the lines:



Those commands will be executed automatically when DOSBox starts! Please note:Full screen: Alt and Enter

When you exit from the DosBox [precisely when u unmount the virtual drive where Turbo C++ 3.0 has been mounted] all the files you have saved or made changes in Turbo C++ 3.0 will be copied into the source directory(The directory which contains TC folder)

Don’t use shortcut keys to perform operations in TC because they might be a shortcut key for DOSBOX also .

Eg : Ctrl+F9 will exit DOSBOX rather running the code .


This post is Develop by Nishant Kumar

0 comments:

Post a Comment