Turbo C For Vista / Seven



Normally in India, majority of schools and colleges have Turbo C/C++ as the default IDE. Most students are younger than the Turbo C/C++ compiler they use at colleges. I checked our college's Turbo C++ and it was made in 1993. Back then George Bush Sr. was the president of the USA and Windows 95 was still 2 yrs away. I tired to run Turbo C in Vista / Seven and failed and so found a solution for the same. Now U can run Turbo C++ 3.0 on Windows XP 64 bit , Vista / Seven 32 bit and 64 bit OS (in full screen) using the tutorial below :

(1) Install the software DOSBox ver 0.72 ( 1.2 MB ) (Freeware) from the link below (Direct Link)


(2) Before going to the details u have to create a folder (any name will do). Here we name it as Turbo

(3) Copy the TC into the Turbo folder. You can download Turbo C/C++ here.

(4) Run the DOSBox 0.72 from the icon located on the desktop or from the location of the installation folder

(5) Then u are presented with two screens which look like the command prompt in Windows. One with a Z prompt. You can ignore the other screen.

(6) Type the following commands at the command prompt [Z]:

Mount [Type in any alphabet that u wish except z] [Type the source of the turbo C] press enter

(7) Now , Type in the following commands after the Z prompt:

Z: mount d c:\Turbo\ [The folder TC is present inside the folder Turbo]

(8) Now u should get a message which says: Drive D is mounted as a local directory c:\Turbo\

(9) Type d: to shift to d: prompt . Next follow the commands below

cd TC [The contents inside the folder Turbo gets mounted as a virtual drive (Here D drive)

cd Bin

TC or Tc.exe [This presents u the Turbo C++3.0 screen]
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 )
Points to Note:

(1)
In order to get the full screen use the key combination of Alt and Enter

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

(3) It is a good idea to backup your files in the source directory prior to running DOSBox 0.72

(4) For additional help go through the readme file located in the installation folder or look on the website of the DOSBox forum.

(5) 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 .

UPDATE :
You can save yourself some time by having DOSBox automatically MOUNT your folders

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 DOS BOX starts.


Now those commands will be executed automatically when DOS BOX starts!
If still you face some problem running the program read the comments below or post you query as a comment. 





Get Tech Updates via eMail :

203 comments:

  1. I tried it a long ago but all programs run in my 64 bit AMD except the TC.exe i think it is not being able to grt enough memory.

    ReplyDelete
  2. Ya May Be The Emulators R Not Getting Enough Physical Memory ...

    ReplyDelete
  3. How can i give it enough physical mem?
    i edited the .conf file and make the max allocatable mem , thats 63 MB .. need a solution ,,

    need a win 32/16 emulator also

    ReplyDelete
  4. Bro Changing Conf Files Will Not Help U Gain More Physical Memory ... And We R not Also Sure About That The Problem Is Due TO Memory Only ..

    So Here R 2 Suggestions For U :

    (1) Try increasing the virtual memory , it might help ( Although I thik it will not )

    (2) Use a 32 bit complier like DevC++ And Even Borlan dHas It's 32 Bit Gui Compiler

    ReplyDelete
  5. z:\>mount k h:\turbo\tc(tried even without tc)
    drive k is mounted as local directory h:\turbo\tc\

    z:\>cd bin
    you are still on drive z:,change to a mounted drive with c:.

    where did i go wrong???

    ReplyDelete
  6. u must write
    z:> k:

    before doing
    z:\>cd bin
    now do

    k:> cd bin

    ReplyDelete
  7. I tried the above procedure on my XP (AMD 64 bit processor , with 32bit xp)
    I am able to get the IDE running , but on compiling the code it says : unable to create output file ...

    and unable to include stdio.h etc(all header files).

    I did make the change in Options Directories to point to the correct mount drive (D:\tc\include & d:\tc\bin)

    ReplyDelete
  8. Sry bro , but here it works fine ... Will have to see the problem at ur end ... :)

    ReplyDelete
  9. there is a little mistake in the code
    after mounting on d virtual drive we should give

    Z:> d:

    to get to D:>

    rest all is fine :)

    for those who still don't understand view this image
    http://img84.imageshack.us/img84/5064/captureqh0.jpg

    ReplyDelete
  10. i ve a hp dv2601tx laptop.i had tried this DOSBOX 0.72 and it's working in my laptop .I got a fullscreen for turbo c++ 3.0 in vista environment.
    But after writting any program ,while compiling ,i am getting an error that it's unable to open 'stdio.h' header file(getting this error for all header file).Plz help me.....
    Tell me what to do??????????

    ReplyDelete
  11. The most possible reason might be that u might have not set the path of directories correctly . If it's not so then I have to see it myself , can't help ...

    ReplyDelete
  12. Hi. Outspoken here. I had posted about include files problem. I realised later that the directories were wrongly set due to the following reason:

    my tc folder is d:\tc\bin\

    so this is what i HAD set the directory in tc to (wrongly beleiving it was correct).

    But realised later that on mounting a folder in dosbox i need to remove top level directory in the path.

    Mount as : mount d d:\tc
    then set directory in tc as D:\bin
    D:\include
    etc.
    (NO TC folder!)

    ReplyDelete
  13. I got the solution of my problem and it's work properly.
    I double click on the DOSBOX icon ,two window box appeared on the screen.I click on the window where a z prompt was there.
    Then i write
    z:\>mount c c:\
    then
    z:\>c:\
    then
    c:\>cd tc
    c:\>cd bin
    c:\>tc

    The Fullscreen c editor will open successfully.

    ReplyDelete
  14. hi thank you very much all of you!!
    This thing works! one thing i was breaking my head over was the directory problem.....Please remeber to change directory to d:\include

    ReplyDelete
  15. ok sorry for that ,now u can see in my blog that in this post i have written that this post was originally posted by www.techx.co.nr
    ok now it might be suited to u ...any how if u want me to do more then post a comment on my blog www.siddsoft.blogspot.com
    bbye

    ReplyDelete
  16. hi i m vijay....
    i used dosbox. it makes turbo to open in full screen and while compiling i have no error due to directories but m not able to see the output. as i run the program dos box cloases automatically

    ReplyDelete
  17. why does it always give an error saying "can't open the include file stdio.h"

    ReplyDelete
  18. Hello everyone...
    even i tried to use dosbox...
    everthing is fine except for the output part....
    i m not being able to get the output...
    even the complinig is successful...but only the output screen part....
    please help...
    my email id is anubhavjain346@gmail.com

    ReplyDelete
  19. Do not use keyboard shortcuts , they have other functions in DOSBox. For Eg. to run code ctrl+F9 will KILL dosbox! may be why u get no o/p.
    alt+F5 for o/p screen may be doing something else.
    So for novices DO NOT USE keyboard shortcuts, for advanced users there is a way to re-map DOSBox'es keyboard shortcut from Dos box itself, just read the readme and other documentation.

    ReplyDelete
  20. hi everyone....
    if u r getting a message like
    can't able to open stdio.h header file,i think
    u must have done a mistake .
    Don't go to Bin folder directly before going tc folder.If u do so then u will definitely got a error like can't able open to header file.

    ReplyDelete
  21. After writting a comments i am giving my name/url then pressing publish yr comment,it's not working but when i choose anonymous then publish yr comment is working,why it is happening like this.

    ReplyDelete
  22. See , it's working . Might be a bug in Blogger that times, Resolved now .. Njoy !!!

    ReplyDelete
  23. hey buddys ,,this is nick...
    i have vista basic version...
    i tried out all things posted here...but at last when i press ENTER , the dos box window automatically closed...wt should i do?
    plz give me reason...

    ReplyDelete
  24. Check this comment as said by OUTSPOKEN ... Might help U .

    "
    Do not use keyboard shortcuts , they have other functions in DOSBox. For Eg. to run code ctrl+F9 will KILL dosbox! may be why u get no o/p.
    alt+F5 for o/p screen may be doing something else.
    So for novices DO NOT USE keyboard shortcuts, for advanced users there is a way to re-map DOSBox'es keyboard shortcut from Dos box itself, just read the readme and other documentation.

    "

    ReplyDelete
  25. i performed all that u said.its good only until we start compiling and once i compile its exiting out

    ReplyDelete
  26. Check this comment as said by OUTSPOKEN ... Might help U .

    "
    Do not use keyboard shortcuts , they have other functions in DOSBox. For Eg. to run code ctrl+F9 will KILL dosbox! may be why u get no o/p.
    alt+F5 for o/p screen may be doing something else.
    So for novices DO NOT USE keyboard shortcuts, for advanced users there is a way to re-map DOSBox'es keyboard shortcut from Dos box itself, just read the readme and other documentation.

    "

    ReplyDelete
  27. when the Zprompt window opens..i write
    Z:\>mount c c:\
    it says that Mounting is not recommended. Plese muount a (sub) directory next time.
    Drive C is mounted as local directory c:\
    then,
    i write..
    Z:\>c:\
    so C:\> appears, but when i further write
    C:\> cd tc
    it says "Unable to change to :tc"

    please help...i saw all your blogs but could'nt get a solution to my problem..

    ReplyDelete
  28. when the Zprompt window opens..i write
    Z:\>mount c c:\
    it says that Mounting is not recommended. Plese muount a (sub) directory next time.
    Drive C is mounted as local directory c:\
    then,
    i write..
    Z:\>c:\
    so C:\> appears, but when i further write
    C:\> cd tc
    it says "Unable to change to :tc"

    please help...i saw all your blogs but could'nt get a solution to my problem..

    ReplyDelete
  29. after the Z prompt window opens..
    i type..
    Z:\>mount c c:\
    so it gives the statement..
    "Mounting c;\ is NOT recommended.Please mount a (sub)directory next time. Drive C is mounted as local directory c:\"
    then,i type..
    Z:\>c:\
    so it appears like
    C:\>
    but when i further type
    C:\>cd tc
    it says
    "Unable to change to:tc."
    Please help..i read the blogs but could'nt find a solution to my problem.

    ReplyDelete
  30. Here I'm showing u exactly how it is done . The mistake ur doing is that u have to choose a subfolder to map on a virtual drive .

    Let's see how ..

    Suppose u have ur TC in c:\tc . Then u have to mount C:\tc and not C:\ . Also mount it on a different drive from C:\ , use K instead for example.

    So , open Dos Box , type "mount k c:\tc" ( I'm assuming that ur tc files are in c:\tc )

    Next type k: and then cd bin , followed by tc.

    Also u need to change the default directories to k:\include and k:\lib in the options >> directory menu in TC .

    Njoy !!!

    ReplyDelete
  31. hey i tried the above and it was successful.......
    but after compiling it leaves a error message that "unable to open "iostream.h" like wise all the header file............

    i need it urgent anyone help me out

    ReplyDelete
  32. @bove

    U need to change the default directories to k:\include and k:\lib in the options >> directory menu in TC .

    Here k:\ is the virtual drive letter and it refers to the TC main folder path !!!

    ReplyDelete
  33. can anyone help me in getting the print copy of a graphics output in turbo c3.0 using dosbox in windows vista,without going for win98.
    Bcz in win98 one can take a printcopy by using ptrscree key but how to do it in vista.

    ReplyDelete
  34. Anita , use DOSBOX in window mode and then press print screen . Paste that file in paint brush and crop the image . Simple :)

    ReplyDelete
  35. Its not so simple,Bcz ptr screen is not working in vista .So any other suggestions!!!!!!!!

    ReplyDelete
  36. Hey Anita try using this : Take Screen Shots in Vista : Snipping Tool : http://techix.blogspot.com
    /2007/12/take-screen-shots-in-vista-snipping.html

    Hope this helps . Use this tool while DOSBOX in in window mode . And even if problem persists let me knw :)

    Remove the enter from the URL above.

    ReplyDelete
  37. This is shailendra have vista ultimate and i have a the turboc folder in C drive ie. C:\turboc and i have installed the DOSBox-0.72, this file saved in c:\turboc

    Some one explain me what is the "tc " and "bin"

    because i can mount C:\turboc as well as k C:\turboc

    but the next step
    --------> "Now type d: to shift to d: prompt It gives me a message stating that drivce D: does not exist

    ReplyDelete
  38. Well Shailendra Bro , Tc and Bin are just folders for reference , Actually my TC.exe file exsist in Bin folder . If u have that fil inside ur C:\turboc folder, mount it .

    In short , mount that folder which has TC.exe file and then u will not goto TC and bin .

    U can't shift to D: like that , u have to mount it . Read the instructions again !!!

    ReplyDelete
  39. hey yaar...

    i m very much in need of running cpp on vista.. i have gone through the whole blog thoroughly.. everything is working for me except the full screen mode..
    things i have done is that.. i have created a turbo folder in c: .. then copied the tc folder into it.. i opened dosbox...

    typed so..-->
    z:\>mount j c:\turbo\tc
    z:\>j:
    j:\>cd tc
    j:\TC>cd bin
    j:\tc\bin>tc

    this when cpp opend up... i have changed the directories properly.. but even after that my alt+enter wud just maximize the black background.. but the cpp window remains the same small size... pls do help me in sorting out this problem.. i do have my cpp lab exam this comin 14th... n i wanna ask u something.. does this work only on turbo c 3.0.. i m not sure abt my version TC in this.. thatz y i asked..reply soon.. thanks...

    ReplyDelete
  40. Thanks a ton! Works fine for me :)

    ReplyDelete
  41. hey what i gonna do.?? i try all but its error.
    help!!
    http://i395.photobucket.com/albums/pp34/nilvaris/Capture.jpg

    can u help me?? i have YM nilvaris

    ReplyDelete
  42. hey what i gonna do.?? i try all but its error.
    help!!
    http://i395.photobucket.com/albums/pp34/nilvaris/Capture.jpg

    can u help me?? i have YM nilvaris

    ReplyDelete
  43. Well, ur J: is equivalent to c:\turbo\tc i.e. You don't have to type "cd tc" as you are already in that folder. Just type "cd bin" and then "tc.exe" or just "tc.exe" depends where your exe file is...

    Hope this may solve the problem...

    ReplyDelete
  44. done,,but what i gonna do in directory??

    ReplyDelete
  45. Just find tc.exe and reach that folder and when u got that just type "tc.exe" like u do in simple DOS .

    ReplyDelete
  46. hi i am prasanna....while compiling any prog i am gettin a linker error statin unable to open COS.obj.........wat shld i do to overcome this..pls anyone help me out.........

    ReplyDelete
  47. hey, can anyone help me please!!
    I did everything instructed here and luckily it worked for me :) but i just wanted to ask that do we have to do this everytime we want to use C++ in fulscreen mode?? IS there any permanent solution?

    ReplyDelete
  48. Amazing................... I really appreciate ur work......... But why to repeat all steps again??

    ReplyDelete
  49. Ankur can't get you, can you elaborate on it ?

    ReplyDelete
  50. do we have to repeat these steps each time we want to use tc in fullscreen

    ReplyDelete
  51. Well yes, an easy way can be copy the commands in a text file and just paste them in DOS Box when you need to run.

    Morover there is a way to auto execute commands at lauch of DOS BOX. Create a batch file and write the commmands in it and run it inside dos box. Simple .. :)

    ReplyDelete
  52. Hi everyone.. i successfully installed the dosbox and everything is working fine. But i cannot figure out how to change the default keyboard shortcuts. I even tried the mapper, but i cant do it.. so can someone tell me how to change the default keyboard shortcuts so that i can run my C code by pressing ctrl+f9..

    ReplyDelete
  53. hello,
    i am using turbo c++ graphics . can any one suggest any other IDE or way to design graphics application easily in window.
    email: lokesh_exe@yahoo.co.in

    ReplyDelete
  54. For complete easy step by step instruction visit.. http://www.desiengineers.com/archives/288

    ReplyDelete
  55. For complete easy step by step instruction visit.. http://www.desiengineers.com/archives/288

    ReplyDelete
  56. i followed all the steps above and all excluding output is working fine.please help me it is urgent.
    my file is stored in c:\tc
    i mounted it like mount k c:\tc
    i am not able to get the output

    i have vista 32 bit

    ReplyDelete
  57. i got the output i am very very thankful to u

    continue this good job.

    ReplyDelete
  58. Thanx all for your comments :) Njoy !!

    ReplyDelete
  59. it works!!!
    thank you!:)

    ReplyDelete
  60. I want to purchase dell xps1530 which has vista premium os how it can be use to work with turboc3 programms

    ReplyDelete
  61. hey guys pls tell me the whole procedure of running tc under dos box...
    u guys dnt just argue its too anoying u knw its been almost 4 mnths i am unable to run tc just for this bullshit vista.
    pls show me the full procedure including mounting and changing directories.
    c when i write ths like

    z:\>mount d c:\turbo\tc or
    z:\mount d c:\tc\turbo
    it says directory c:\tc\turbo doesnt exist
    why it is.....
    guys pls rescue me if i dnt run my compiler i guess i have to revoke studying software engineering.
    it really sucks.
    guys i m trying to use dev c++ but it cant compile c source code dont know why it is?
    guys pls suggest me wat i should do??/help me

    ReplyDelete
  62. Seriously, u need to revoke studying software engineering sorry to say that.It says " directory c:\tc\turbo doesnt exist " means it does not exist, your turboC might be at different location with different name. Write the path where your TC exist !!!

    ReplyDelete
  63. Hi,

    some of the keys are not working like right side 'shift key and double and single quote keys are not working in dosbox. can any one suggest please

    Thanks & Regards,
    Ram

    ReplyDelete
  64. Thankss...
    right side shift and double n single quote is also working fine.....

    ReplyDelete
  65. the tc.exe i opened from the dosbox is unable to include h files. what should i do. if i run the tc.exe without using the dosbox, i can use .h files except for graphics.h which when i tried to open, displays the error: BGI error, BGI error, use initgraph.

    please help me...
    your help would be very appreciated...

    ReplyDelete
  66. U need to change the path of header files inside dosbox, I have tried to answer that question many times, read the comments above on how to do it

    ReplyDelete
  67. Am not able to mount the drive when i enter Z: mount d c:\Turbo\
    It says unable to mount drive plzz help

    ReplyDelete
  68. Hi guys, read through your blog to install turbo C but I am not clear that from where will I get the TC files (TC.exe)and the bin files.. It would be of great help if sumone could answer my query.. I need Turbo C immediately on my vista.. Please help! Thanks in advance

    ReplyDelete
  69. U can download Turbo C from http://cc.codegear.com/item/26014

    ReplyDelete
  70. dosbox 0.72 cannot accept colon ->: how can i click this button

    ReplyDelete
  71. thanks! now I can compile and run the program However, I have some difficulties that I can't type some symbols like {} or =

    I tried the left shift button but it still doesn't work for me, what should I do?

    ReplyDelete
  72. Have a look @

    http://metaviewsoft.de/wordpress/?p=81

    http://vogons.zetafleet.com/viewtopic.php?t=20040&sid=8d5eece5b6191eef33cb911e75091ff5

    Hope this solve the above 2 queries !

    ReplyDelete
  73. hi i am using windows vista. i wrote a graphics program using graphics.h header file the output of the program wasnt visible pls help asap

    ReplyDelete
  74. It should work something might be wrong. Anywayz, I can't troubleshoot the problem without seeing it. Try this, would help : http://www.techquark.com/2008/04/graphicsh-in-c-in-vista.html

    ReplyDelete
  75. Thanks for the help :-)

    ReplyDelete
  76. i cant change the directory
    i do as u say but when i open a file from the turbo folder then it say invelid derectory
    do something

    ReplyDelete
  77. You might be using different name for your folder. Recheck and input the path properly. It might differ from system to system.

    ReplyDelete
  78. mr genius pls help me again. im still unable to use graphic.h on vista i did try dev c but it gave me stupid errors and pls it doesnt work with math.h. Im using a dell studio 15 pls help.

    ReplyDelete
  79. Now, I would have to see the prob myself. Can you upload some screenshots of error ?

    ReplyDelete
  80. actually wen i ran the prog in tc the output doesnt disp. dev c shows an error in abs func. actually i was doin the dda line algo in comp graphics. also pls can u tel me where can i dwd tc for ubuntu.

    ReplyDelete
  81. This comment has been removed by the author.

    ReplyDelete
  82. With trials and errors, I found the solution.
    follow these:

    Z:\>mount d c:\tc
    Drive D is mounted as local directory c:\tc\

    Z:\>d:

    D:\>cd bin

    D:\BIN>tc (Then Press enter, it should run Turbo C)

    -->I provided a screenshot (http://i44.tinypic.com/2zso1mq.jpg)

    --> After running the program, press Alt+Enter to switch to Full Screen. You can now run the program but REMEMBER!!! DO NOT USE SHORTCUT KEYS!!! IT WILL EXIT THE PROGRAM!!!

    --> STDIO.H doesn't work?? Go to Options. On the Include Directories, change it into D:\INCLUDE .On the Library Directories, change it into D:\LIB ..There you go. I hope it worked for you.^^

    -->I provided a screenshot (http://i40.tinypic.com/2wcfclh.jpg)

    *We used the "D:\" directory because that is the directory we chose upon mounting. "Z:\>mount d C:\tc <---See? ^_^

    ReplyDelete
  83. Additional info:

    If you are having problem running your program, like all the codes you have typed is right but there is no output, try pressing Alt+F5 (Though it is a Shortcut Key, I think it is somehow valid with DosBox option). Just don't think about pressing Ctrl+F9. ;)

    ReplyDelete
  84. the math.h functions dont work in dev-c++

    ReplyDelete
  85. Math.h --> I think you don't have this file on your INCLUDE folder. Try to download it online and move it to your C++ Include Folder (i.e. C:\TC\INCLUDE)

    ReplyDelete
  86. Hey guys I am not able to find the TC.EXE file from the given link.....I unzipped all the files and tried to run INSTALL.EXE but cant do it...and in the unzipped folder I have two BIN files BIN1 and BIN2 but none of them contains the TC.EXE.....can anyone please get me the solution......thank you!!!!

    ReplyDelete
  87. 0e..itz dun fo d frst tym..bt do i actually needa repeat d stuff evrytym i do..huh..??..
    sinc tz lengthy..so z deya ne otha shortcut i cn create??..

    ReplyDelete
  88. hi NISHA here..
    i proceed step by step...it compiles successfully but at run time it shows "unable to open COS.OBJ"
    PLZ HELP ME OUT PLZZZZZZZZ

    ReplyDelete
  89. @bove : Read the comments again, the solution to ur ques has been discussed !

    ReplyDelete
  90. sir i had follow all the steps but i do not get full screen . my turbo c is install in e: drive so please send me a modifeied step for e drive

    ReplyDelete
  91. hi vishal here.....
    thanks...........

    ReplyDelete
  92. c:\> cd bin
    unable to change to: bin

    please help me

    ReplyDelete
  93. Post all the commands you are entering !

    ReplyDelete
  94. thanks shubham... i got the solution i created different folder so it was unable to change .. now its workin perfectly fine....
    from:meghana

    ReplyDelete
  95. hi shubham
    i have the following problem while running any program

    it says unable to create output file 'c:\tc\source\noname00.obj'

    ReplyDelete
  96. i also wanted to ask that the location of which directories have to be changed???
    1. include directories
    2. library directories
    3. output directories
    4. source directories

    ReplyDelete
  97. Goto Options > Directories inside TC and then delete the text from Output Directory and Source Directory !

    ReplyDelete
  98. You just need to change the include and library directories !

    ReplyDelete
  99. many thanks, it's really works!! once again, thank you..

    ReplyDelete
  100. hi
    i implemented eery thing above but when i compile the program iam getting error msgs that 'unable to include file stdio.h'. plz tell me y?

    ReplyDelete
  101. plz provide me solution for my problem shubham

    ReplyDelete
  102. I have answered this ques again and again and again. Kindly read the comments above, you need to change the Directories in the Options.

    ReplyDelete
  103. alt+f9 is not working to make screen in full mode
    plz help

    ReplyDelete
  104. Shubam, I tried changing all possible directoires like C:\turbo\Tc\Include and D:\turbo\Tc\Include, D:\Include, C:\Include but still getting the error 'unable to open include file 'stdio.h'

    ReplyDelete
  105. @bove

    Can you paste here all the commands you used. I suspect you are giving the wrong path again !

    ReplyDelete
  106. Heyy you guys!!!
    it's really work with my points... i did the step by step ...

    z:\>mount c c:\
    Mounting c:\ is NOT recommended .Please mount a(sub) directory next time.
    Drive c is mounted as local directory c:\
    z:\>c:
    c:\>cd tc
    c:\TC>cd bin
    c:\tc\bin>tc.exe

    it's actually successful working...
    I'm using Aspire 5738 with windows 7.

    one thing,about issues 'can't read stdio.h and conio.h ' it's sloved already now,just certainly check the directory...wish any one got the points as me quickly...

    however,i'm very thxx this website ,especially every one who shared any ideas to solve it...

    Thank you that much!!!


    Vorn :)

    ReplyDelete
  107. Hi Shubham....

    This is what I am doing

    I have turbo folder under C:
    This is the full path where C is installed
    c:\turbo\tc

    This is what I am typing in dos box

    z:\>mount c c:\
    Mounting c:\ is NOT recommended .Please mount a(sub) directory next time.
    Drive c is mounted as local directory c:\
    z:\>c:
    c:\>cd turbo\tc\bin
    c:\turbo\tc\bin>tc.exe

    I have written a simple program which is saved under C:\turbo\tc\bin\hello.c

    #include
    void main ()
    {
    printf("Hello");
    }

    I goto directories under Options

    Include Directories
    C:\turbo\tc\include

    Library Directories
    C:\Turbo\TC\Include (also tried giving C:\turbo\Tc and C:\turbo\tc\include )

    Haven't given any path under 'Output Directory' and 'Source Directories'
    but I still get the error
    'unable to open include file 'stdio.h'

    Can you please help.....I tried all possible combinations. I tired installing the TC under drifferent drives like D: and then try mounting, still didn't help.

    ReplyDelete
  108. This comment has been removed by the author.

    ReplyDelete
  109. Well, it should work...

    Mmmm... Try following things :

    (1) Check if you have stdio.h file in include directory.

    (2) Please don't use C or D as virtual drive, use a drive that is physically not present like Z: Y: X: etc. It might conflict if you use C or D.

    Let me know if that works !

    ReplyDelete
  110. Yes, I have checked and there is stdio.h file is present there.....I have the turbo folder under both C and D drive, is that a issue?

    Also, I will try and mount someother drive which is not present and will update you...

    Thanks

    ReplyDelete
  111. a huge thanx to shubham and also to genesis. i wud advise shubham to add the two screenshots genesis gave as it clarifies evrything.

    second day using c. this article was a huge relief!

    ReplyDelete
  112. Guys! If you're having directory problems, just set the directories in your Turbo C options according to the virtual drive you set in DOSBox. For example: I mounted here in DOSBox(this is how I put mine: "mount A C:\Progra~1\DOSBox-0.73\DOSPro~1\TC
    So when I use Turbo C, I set the directories to the following:
    Include directory: A:\INCLUDE
    Library directory: A:\LIB
    Turbo C directory: A:\

    Hope this helps!

    But I got a problem of my own. I set my Output directory to "A:\". When I try running a file named BGIDEMO.C in Turbo C, I get the error: "Linker Error: Unable to open input file 'A:\BGIDEMO.EXE'

    Please help! Thanks!

    ReplyDelete
  113. You don't need to specify output directory, otherwise it will raise linker error.

    ReplyDelete
  114. This is the last guy. I still got the same problem, but already I took out the output directory. I'm using DOSBox 0.73. You know the other window that opens when you start DOSBox, you know, the one that you don't type in? It gives a message: "Warning: file creation failed C:\(the directory where my Turbo C is)" Though BGIDEMO miraculously worked. I'm not sure how. Maybe you know. But the other examples that came with the TC installation don't want to run, they get the same error. I tried making a new project, but it got the same problem. I hope you can help. I'd really appreciate it. Thanks!

    ReplyDelete
  115. Disregard the last one. I found that I had to "Run as Administrator" DOSBox. Stupid Administrator thing. Hahaha!

    But now, I've got new problems. I'm not sure if you'll be able to remedy them. I get errors when I run these complex files that came as examples with the installation on DOSBox. CBAR.C is one of them. It gives the error:
    "Linker Error: Undefined symbol 'm_ain' in module C0S"
    "Linker Error: Undefined symbol '__int86' in module CBAR.C"

    The latter only appears with CBAR.C. Hope you can help. Thanks! :-)

    ReplyDelete
  116. I'm kinda a noob at this(still a student). Are some the example codes that comes with Turbo C optionally installation bugged? It's because the one I tried running was one of those.

    ReplyDelete
  117. i've installed dosbox.everything is working gud.but i'm getting full screen in red colour..can i change the colour to blue .

    ReplyDelete
  118. jey... i hav tried all... but still getting BGI error...
    what to do????? plz... help....

    ReplyDelete
  119. hi....
    plz help its urgent....
    the output screen in dosbox is not sticking to show output....though it is accepting input coordinates...and i also used getch()....
    what to do???

    ReplyDelete
  120. Hello. This isn't the guy who reported about the red full-screen, but I have the same problem. Instead of sending a screen shot of it, because it's quite tedious for me to make an account in a picture website, I'll just describe it. When I use Turbo C in DosBox, it just appears as the blue, normal screen we all know and love, but when I press Alt-Enter, it becomes full-screen all right, but the colors are "inverted." What I mean is, blue(background) switches to red, red(hot-key guide of menu options) to blue, yellow(text and cursor) turn to sort of dirty green, but the grey/white(borders) stay the same though. Hope you can help. :-)

    ReplyDelete
  121. i am running tc normally without dos box,in graphics mode. i get the output n all but i want 2
    copy that output into paint or ny such thing for printing. plz help

    ReplyDelete
  122. shubham buddy !! thank you for your post and other and special thanks to the website.
    my cusin has Dell Core i3 window7 basic 64bit.i suggested him to purchase the product. he is a BCA student and his exams are on head!! i guided him and made him to run C in DosBox.but when he compile or runs the coding he gets the error with cannot include stdio.h.(One thing want to confirm he has folders c:\turbo\{all contents} no separate folders,i mean no separate folders for "inlcude","LIB","BIN".so i guided him to set path accordingly x:\.....but nothing happens same error...i think now the problem is only setting?
    please guide me brother!!
    Sanjay Soni

    ReplyDelete
  123. i have a real problem.. i put everything u say
    and at the end when a type Tc or tc.exe
    the screen says "failed to locate DPMI server (DPMI16BI)
    what it means..
    its important..
    i have some hwk !!
    obviously i have vista

    ReplyDelete
  124. whats this i think i don know how to use but everytime i exit after my work finish and then again i open dos-box then i have to mount again.. do anyone have solution of it....how to gt rid of it

    ReplyDelete
  125. @bove

    I have already answered your question in my post. Read the last part.

    ReplyDelete
  126. I couldn't go beyond
    (3) Copy the TC into the Turbo folder. You can download Turbo C/C++ here.
    As I wasn't authorized network licensence user i couldn't download Turbo C...Please help

    ReplyDelete
  127. The Borland Turbo C we all are so used to using is a 16bit compiler which is why it can't work on a 64bit OS.

    infact for your own general knowledge read these:

    What is turboc
    http://www.sandroid.org/TurboC/

    16bit issues
    http://support.microsoft.com/kb/282423

    why some 32bit programs won't work on 64bit OS
    http://www.techsupportalert.com/content/32-bit-and-64-bit-explained.htm

    come on... you should know this crap by now.

    anyways...
    setting up dosbox and running this compiler in it would be one workaround.
    another way i'd recommended is switching to a new advanced C compiler completely.
    you may be very used to using that old borland turbo c compiler and you might not want to switch to another compiler that looks different and works a bit different, but learn to move ahead with the times guys. you won't be stuck in the year 2000 for your entire lifetime.

    try "Sun Studio" or "x86 Open64 Compiler Suite"
    http://www.compilers.net/Dir/Free/Compilers/CCpp.htm

    or check this list for more:
    http://www.compilers.net/Dir/Free/Compilers/CCpp.htm

    ReplyDelete
  128. Hi guys here is kapil.
    I m using DOSBox0.72 on window 7.
    When i compile any program, it gives no error but when i run it, I didn't get output screen.
    It shows not an .exe like that....
    or tell me any other compiler compatible for window 7 32 & 64 bit with graphics diractory....
    pls reply soon on my email- singhal.kapil524@gmail.com
    thanx...

    ReplyDelete
  129. HI,
    i tried all the mentioned steps and successfully opened the turboc . but when i try to compile a program , it shows an error saying unable to open stdio. please can anyone help on this

    ReplyDelete
  130. SOLUTION TO ERROR : UNABLE TO OPEN STDIO :

    GO TO OPTIONS>DIRECTORIES>
    AND CHANGE THE PATH OF INCLUDE, LIB,O/P,SOURCE TO ACTUAL DIRECTORIES.
    EX. IF TC IS IN c:\, THEN,
    PATH FOR INCLUDE:
    C:\TC\INCLUDE\ . . and like wise..



    SOLUTION : CAN'T RUN USING CTRL+F9

    CTRL+F9 IS THE SHORTCUT TO EXIT DOS BOX..
    SO, IT WILL NOT WORK WITH DOS BOX TO RUN C PROGRAM. . .
    SO, SIMPLY GO TO RUN MENU AND 'RUN'..

    -RAX

    ReplyDelete
  131. hey...plz give the solution about the red screen...i know little that is because of the screen resolution ...i think so...plz help dude

    ReplyDelete
  132. hey Shubham....ur solution really helped...

    Just the one minor problem...well not xactly a problem..is der anyway to maximize the screen ?

    and to those who have doubts on mounting...
    I did this....

    z:\> mount c:\turbo
    z:\> c:
    z:\> cd tc
    z:\> cd bin
    z:\> tc

    and um facing no problems at all...my graphics programs are running perfectly...

    again...thnx a lot shubham....

    ReplyDelete
  133. Try alt + enter. It will work for you !

    ReplyDelete
  134. This comment has been removed by the author.

    ReplyDelete
  135. hey guys now help me with this problem.....
    after runnin program m getin an error like unable to open 'COS.OBJ'.......

    ReplyDelete
  136. hey guys m facin prob in getting output........
    its showing error like unable to open 'COS.OBJ'

    ReplyDelete
  137. i still get a message saying unable to open file
    plz can ne 1 help???
    i changed dah directories 2...

    ReplyDelete
    Replies
    1. iam also facing the same problem can u help me
      my id is qw12ab34@gmail.com

      Delete
  138. there is no problem to open the c++ window , but it does not include the header files such as iostream.h
    Please tell me what i have to do?

    ReplyDelete
  139. hey! Thanks for the help :) needed to test something...
    and in this small world, I think I know you probably JUIT.?

    ReplyDelete
  140. awsom realy workd...

    ReplyDelete
  141. tanx was easy to understand...

    ReplyDelete
  142. SOLUTION TO ERROR : UNABLE TO OPEN STDIO :

    GO TO OPTIONS>DIRECTORIES>
    AND CHANGE THE PATH OF INCLUDE, LIB,O/P,SOURCE TO ACTUAL DIRECTORIES.
    EX. IF TC IS IN c:\, THEN,
    PATH FOR INCLUDE:
    C:\TC\INCLUDE\ . . and like wise..



    SOLUTION : CAN'T RUN USING CTRL+F9

    CTRL+F9 IS THE SHORTCUT TO EXIT DOS BOX..
    SO, IT WILL NOT WORK WITH DOS BOX TO RUN C PROGRAM. . .
    SO, SIMPLY GO TO RUN MENU AND 'RUN'..

    -RAX

    ReplyDelete
  143. Hi guys here is kapil.
    I m using DOSBox0.72 on window 7.
    When i compile any program, it gives no error but when i run it, I didn't get output screen.
    It shows not an .exe like that....
    or tell me any other compiler compatible for window 7 32 & 64 bit with graphics diractory....
    pls reply soon on my email- singhal.kapil524@gmail.com
    thanx...

    ReplyDelete
  144. The Borland Turbo C we all are so used to using is a 16bit compiler which is why it can't work on a 64bit OS.

    infact for your own general knowledge read these:

    What is turboc
    http://www.sandroid.org/TurboC/

    16bit issues
    http://support.microsoft.com/kb/282423

    why some 32bit programs won't work on 64bit OS
    http://www.techsupportalert.com/content/32-bit-and-64-bit-explained.htm

    come on... you should know this crap by now.

    anyways...
    setting up dosbox and running this compiler in it would be one workaround.
    another way i'd recommended is switching to a new advanced C compiler completely.
    you may be very used to using that old borland turbo c compiler and you might not want to switch to another compiler that looks different and works a bit different, but learn to move ahead with the times guys. you won't be stuck in the year 2000 for your entire lifetime.

    try "Sun Studio" or "x86 Open64 Compiler Suite"
    http://www.compilers.net/Dir/Free/Compilers/CCpp.htm

    or check this list for more:
    http://www.compilers.net/Dir/Free/Compilers/CCpp.htm

    ReplyDelete
  145. I couldn't go beyond
    (3) Copy the TC into the Turbo folder. You can download Turbo C/C++ here.
    As I wasn't authorized network licensence user i couldn't download Turbo C...Please help

    ReplyDelete
  146. shubham buddy !! thank you for your post and other and special thanks to the website.
    my cusin has Dell Core i3 window7 basic 64bit.i suggested him to purchase the product. he is a BCA student and his exams are on head!! i guided him and made him to run C in DosBox.but when he compile or runs the coding he gets the error with cannot include stdio.h.(One thing want to confirm he has folders c:\turbo\{all contents} no separate folders,i mean no separate folders for "inlcude","LIB","BIN".so i guided him to set path accordingly x:\.....but nothing happens same error...i think now the problem is only setting?
    please guide me brother!!
    Sanjay Soni

    ReplyDelete
  147. a huge thanx to shubham and also to genesis. i wud advise shubham to add the two screenshots genesis gave as it clarifies evrything.

    second day using c. this article was a huge relief!

    ReplyDelete
  148. alt+f9 is not working to make screen in full mode
    plz help

    ReplyDelete
  149. thanks shubham... i got the solution i created different folder so it was unable to change .. now its workin perfectly fine....
    from:meghana

    ReplyDelete
  150. c:\> cd bin
    unable to change to: bin

    please help me

    ReplyDelete
  151. sir i had follow all the steps but i do not get full screen . my turbo c is install in e: drive so please send me a modifeied step for e drive

    ReplyDelete
  152. hi NISHA here..
    i proceed step by step...it compiles successfully but at run time it shows "unable to open COS.OBJ"
    PLZ HELP ME OUT PLZZZZZZZZ

    ReplyDelete
  153. Math.h --> I think you don't have this file on your INCLUDE folder. Try to download it online and move it to your C++ Include Folder (i.e. C:\TC\INCLUDE)

    ReplyDelete
  154. the math.h functions dont work in dev-c++

    ReplyDelete
  155. Now, I would have to see the prob myself. Can you upload some screenshots of error ?

    ReplyDelete
  156. dosbox 0.72 cannot accept colon ->: how can i click this button

    ReplyDelete
  157. U can download Turbo C from http://cc.codegear.com/item/26014

    ReplyDelete
  158. Hi guys, read through your blog to install turbo C but I am not clear that from where will I get the TC files (TC.exe)and the bin files.. It would be of great help if sumone could answer my query.. I need Turbo C immediately on my vista.. Please help! Thanks in advance

    ReplyDelete
  159. Am not able to mount the drive when i enter Z: mount d c:\Turbo\
    It says unable to mount drive plzz help

    ReplyDelete
  160. hey guys pls tell me the whole procedure of running tc under dos box...
    u guys dnt just argue its too anoying u knw its been almost 4 mnths i am unable to run tc just for this bullshit vista.
    pls show me the full procedure including mounting and changing directories.
    c when i write ths like

    z:\>mount d c:\turbo\tc or
    z:\mount d c:\tc\turbo
    it says directory c:\tc\turbo doesnt exist
    why it is.....
    guys pls rescue me if i dnt run my compiler i guess i have to revoke studying software engineering.
    it really sucks.
    guys i m trying to use dev c++ but it cant compile c source code dont know why it is?
    guys pls suggest me wat i should do??/help me

    ReplyDelete
  161. I want to purchase dell xps1530 which has vista premium os how it can be use to work with turboc3 programms

    ReplyDelete
  162. i got the output i am very very thankful to u

    continue this good job.

    ReplyDelete
  163. done,,but what i gonna do in directory??

    ReplyDelete
  164. Well, ur J: is equivalent to c:\turbo\tc i.e. You don't have to type "cd tc" as you are already in that folder. Just type "cd bin" and then "tc.exe" or just "tc.exe" depends where your exe file is...

    Hope this may solve the problem...

    ReplyDelete
  165. This is shailendra have vista ultimate and i have a the turboc folder in C drive ie. C:\turboc and i have installed the DOSBox-0.72, this file saved in c:\turboc

    Some one explain me what is the "tc " and "bin"

    because i can mount C:\turboc as well as k C:\turboc

    but the next step
    --------> "Now type d: to shift to d: prompt It gives me a message stating that drivce D: does not exist

    ReplyDelete
  166. Hey Anita try using this : Take Screen Shots in Vista : Snipping Tool : http://techix.blogspot.com
    /2007/12/take-screen-shots-in-vista-snipping.html

    Hope this helps . Use this tool while DOSBOX in in window mode . And even if problem persists let me knw :)

    Remove the enter from the URL above.

    ReplyDelete
  167. Anita , use DOSBOX in window mode and then press print screen . Paste that file in paint brush and crop the image . Simple :)

    ReplyDelete
  168. can anyone help me in getting the print copy of a graphics output in turbo c3.0 using dosbox in windows vista,without going for win98.
    Bcz in win98 one can take a printcopy by using ptrscree key but how to do it in vista.

    ReplyDelete
  169. when the Zprompt window opens..i write
    Z:\>mount c c:\
    it says that Mounting is not recommended. Plese muount a (sub) directory next time.
    Drive C is mounted as local directory c:\
    then,
    i write..
    Z:\>c:\
    so C:\> appears, but when i further write
    C:\> cd tc
    it says "Unable to change to :tc"

    please help...i saw all your blogs but could'nt get a solution to my problem..

    ReplyDelete
  170. i performed all that u said.its good only until we start compiling and once i compile its exiting out

    ReplyDelete
  171. why does it always give an error saying "can't open the include file stdio.h"

    ReplyDelete
  172. ok sorry for that ,now u can see in my blog that in this post i have written that this post was originally posted by www.techx.co.nr
    ok now it might be suited to u ...any how if u want me to do more then post a comment on my blog www.siddsoft.blogspot.com
    bbye

    ReplyDelete
  173. Hi. Outspoken here. I had posted about include files problem. I realised later that the directories were wrongly set due to the following reason:

    my tc folder is d:\tc\bin\

    so this is what i HAD set the directory in tc to (wrongly beleiving it was correct).

    But realised later that on mounting a folder in dosbox i need to remove top level directory in the path.

    Mount as : mount d d:\tc
    then set directory in tc as D:\bin
    D:\include
    etc.
    (NO TC folder!)

    ReplyDelete
  174. there is a little mistake in the code
    after mounting on d virtual drive we should give

    Z:> d:

    to get to D:>

    rest all is fine :)

    for those who still don't understand view this image
    http://img84.imageshack.us/img84/5064/captureqh0.jpg

    ReplyDelete
  175. z:\>mount k h:\turbo\tc(tried even without tc)
    drive k is mounted as local directory h:\turbo\tc\

    z:\>cd bin
    you are still on drive z:,change to a mounted drive with c:.

    where did i go wrong???

    ReplyDelete
  176. Bro Changing Conf Files Will Not Help U Gain More Physical Memory ... And We R not Also Sure About That The Problem Is Due TO Memory Only ..

    So Here R 2 Suggestions For U :

    (1) Try increasing the virtual memory , it might help ( Although I thik it will not )

    (2) Use a 32 bit complier like DevC++ And Even Borlan dHas It's 32 Bit Gui Compiler

    ReplyDelete
  177. I tried it a long ago but all programs run in my 64 bit AMD except the TC.exe i think it is not being able to grt enough memory.

    ReplyDelete
  178. Kartheeka PothumarthiNovember 3, 2011 at 5:57 AM

    I am getting an error "unable to change to TC" after the step -D:\> cd TC

    ReplyDelete
  179. after closing all prompts when i start again i have to  follow the whole procedure again...,is there any way through which it sets in default

    ReplyDelete
  180. You question has already been answered in the last section of the post !

    ReplyDelete
  181. i have tc in d drive and i have mounted tc.exe in dosbox...bt it is showing errors about cannot include header files...i donot know why...plz somebody help me in this

    ReplyDelete
  182. also when i open any earlier saved program through dosbox,it shows invalid drive or directry.. :( plz help me...thanks

    ReplyDelete
  183. Hi,

    I am also having problem with dosbox, the program is getting compiled but can not see the output of it and if I do alt+f5 , the TC goes at the back and the dosbox comes on the screen.
    Pls tell me how to fix it.

    ReplyDelete
  184. Hi Shubham
    I am prashant from karnataka, i am usinga pc
    with windows 7
    ultimate 32 bit in my dell laptop i5. actually when
    when i purchased from showroom, it is already installed
    with linux. I have changed my os with winsows 7, but i
    dont have mother board cd, some drivers not installed
    in my pc. and now i am unable to make full screen of c
    & cpp. so how do i make it full screen of c and cpp.
    It showing a pop up with a msg followed that " this
    system doesnt support full screen", eventhoug dos
    command is also not supporting full screen.so please
    help me to get over from it.

    ReplyDelete
    Replies
    1. Hi,

      Try to get Graphic drivers for your system from your system manufacturer !

      Delete
  185. Prashant
    ok shubham, i will try.

    ReplyDelete
  186. hey there admin the dos box while compiling the code gives an error stating that unable to include header file(math.h,iostream.h)any remedy over it
    vipul dabhi

    ReplyDelete
    Replies
    1. Try going through comments above, you will get your answer :)

      Delete
  187. my turbo c got installed .. it's working fine but the problem I'm facing is that all my keys don't work.. I can't type the special characters using the shift key . it only prints the digits not the special characters

    ReplyDelete
  188. Hey Gays Can U Help Me
    Problem :
    C:\>cd tc
    unable to chane to tc

    Pleaseeeeeeeee

    ReplyDelete

 

About Tech Guru

TechQuark
TechGuru is a leading technology site, dedicated to software, gadgets, tech news and reviews. The site offers articles, tutorials and how-to guides on all things related to personal technology, desktop applications, productive online tools, social networking sites, windows, office etc.

Founded in 2007, TechGuru features audience who have the passion for Software and Technology and seeks to promote awareness about the internet and computing.

Get News on the Go

Mobile TechQuarkTech Guru is a mobile-friendly website. Simply bookmark m.techquark.com in your mobile browser for free access anytime, anywhere.

Contact Us / Send a Tip

Use Contact Form, if you have Comments, Problems, Suggestions, Praise, Complains about the site. Your suggestions and articles are valuable to us.

Copyright © 2007- Tech Guru - All rights reserved. No part of this blog be republished or written without prior permission of the author


Privacy Policy | Disclaimer | Contact | Advertise With Us


Designed and Maintained by Shubham Gupta