Monday, September 20, 2010

How to Install and Run Turbo C++ Compiler in Windows 7 64 bit Version using DOSBox


Before going further deeply into C language i would i like to draw your attention to the old TC++ compiler which cannot be run on Windows 7 64 bit Version.

In this article i will discuss about running Turbo c++ compiler in Windows 7 64 bit OS .
TC++ compiler is a 16 bit software and cannot be run on 64 bit versions of Windows 7.But TC ++ can be run in 64 bit Windows 7 by using an x86 emulator called DOS Box.


The process of doing this is detailed below in plain text or You can watch the youtube video which i have attached



1)Download and install latest version of DOSBox from www.dosbox.com

2)Open DOSBox


A console window will open type in the following commands by referring the details given below it
___________________________________________________
mount c h:\
c:
cd tc
cd bin
tc
 ___________________________________________________

** Here "c" refers to a virtual drive you can specify any alphabet you like it doesn't matter.
** "h:\ " Refers to the drive which contains the TC Program folder
** "cd tc " command is used to change the active directory to the folder named tc which contains tc.exe and other files if you have changed the original name of this folder use that name instead of tc in this command.

3)TC will open open Options>Directories replace drive letters of all directory specifications by the drive letter you specified earlier in my case "c".
Now you can start doing your program in yur beloved Borland compiler
_For a better look please see the Youtube video i have posted_

Note:It is not recommended to use the old version of TC for doing Programs in new Operating Systems  .You can download the New Version of Turbo C or you can use free and efficient IDE like Pelles C.For More Information on Pelles C view the Post http://c-madeeasy.blogspot.com/2011/07/pelles-c-good-ide-supporting-windows-7.html

11 comments:

  • rishabh3sood says:
    January 1, 2012 at 3:48 AM

    what happens after C:\TC\BIN>tc???

  • Techman says:
    January 3, 2012 at 3:52 AM

    Turbo C Compiler opens up and you have change the directory as mentioned above.Then start doing your program.

  • Anonymous says:
    January 18, 2012 at 5:44 AM

    after changing the directory also it shows errors!!!
    what to doo.

  • Techman says:
    January 19, 2012 at 4:39 AM

    What is the error?

  • anuz007 says:
    February 6, 2012 at 8:07 PM

    error: cannot open data file stdio.h...wat shud i do???plz help...

  • Techman says:
    February 7, 2012 at 3:58 AM

    stdio.h is the name of the header file used for standard input output operations.You have to change the default directory of the header files Goto Options>Directories replace drive letters of all directory specifications by the drive letter you specified earlier.
    ------------Plz do join the Blog---------

  • anuz007 says:
    February 7, 2012 at 9:04 AM

    thanks alot man.....
    but do i have to repeat the process everytime i want to use tc??????

  • Techman says:
    February 8, 2012 at 3:37 AM

    Yes.Try to use a Modern Compiler like Pelles C or the new version of turbo c (32 bit)instead of the old version(16 bit).

  • Venkata Vihari says:
    December 22, 2012 at 11:37 AM

    after typing,
    C:\TC\BIN>TC
    illegal command: tc.

    is appearing.suggest me to solve this problem.

  • Sujitkumar says:
    May 29, 2017 at 4:04 AM

    Nice tutorial. Thanks for sharing the valuable info about c Training. it’s really helpful. Who want to learn c language this blog most helpful. Keep sharing on updated tutorials…..

Post a Comment

Subscribe

The Source Codes Published in this Blog can be used freely for Educational purposes but should not be reproduced on any other Blog or Website without the consent of the author.