How to run Turbo C IDE on Windows 7
Turbo C 3.0 is an IDE for creating C/C++ programs which runs on MS Dos (Microsoft Disk Operating System). Up to Windows XP, Turbo C 3.0 IDE runs without any problem but it is not compatible on Windows Vista or Windows 7. Many users(Especially Students ) use Turbo C IDE for writing C/C++ programs. So today I am going to explain how you can run Turbo C++ IDE on Windows Vista or Windows 7.
Method 1: Run Windows XP in Windows 7 using XP Mode and then run Turbo C from Windows XP. The new Windows XP Mode lets you run older Windows XP business software right on your Windows 7 desktop. Windows XP Mode comes as a separate download and works only with Windows 7 Professional and Ultimate. Windows XP Mode also requires virtualization software such as Windows Virtual PC. Both are available free on the Microsoft website. So if you are running Windows 7 Home Basic, this method will not work. So I am not explaining this method now.
Method 2: Using DOSBox
DOSBox is a DOS-emulator that uses the SDL-library which makes DOSBox very easy to port to different platforms. DOSBox has already been ported to many different platforms, such as Windows, BeOS, Linux, MacOS X…
DOSBox also emulates CPU:286/386 realmode/protected mode, Directory FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with older games.
DOSBox is totally free of charge and OpenSource.
So you can run old DOS Games and DOS programs using the DOSBox. Follow the bellow steps to install Turbo C IDE.
- Download DOSBox . As of now the latest version is 0.74. Download Win32 installer for windows
- Install DOSBox
- Create a folder for Dos Programs. For example I am creating a folder ‘Dos’ in my ‘C’ drive.
- Run DOSBox
- In the DOSBox window, we can type the dos commands. First we will mount the ‘Dos’ folder to DOSBox. Type the following commands
MOUNT C C:\Dos
- If you have Turbo C Installer, you need to install it. Step 7-10 are the installation steps. If you have the installed files ie a folder named TC or turbo c and inside that sub folders ‘BIN’, ‘BGI’ etc, goto step 11.
- Copy the installation files to C:\Dos\TCSetup
- Run the following command in DOSBox
- Change source drive to ‘C’ and press enter
- We are going to install it to TC which is the default option. Select Start Installation by pressing the down arrow key and press enter. The installation will start and and you will get message once it is complete. Continue by pressing any key, close the read me me file. Now we are ready to run Turbo C
- In the DOSBox command terminal, type the following command to get the Turbo C Editor. TC\BIN\TC.EXE
- Write, compile, debug and run your programs
- If you get any errors saying cannot include your header files like stdio.h etc… : Make sure that your Libraries are configured correctly. Goto Turbo C’s Option menu, select ‘Directories’ and make sure that Include directories path is ‘C:\TC\INCLUDE’ and Library Directory is ‘C:\TC\LIB’
- You can Switch to Full Screen view or back to normal view by pressing Alt + Enter keys