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
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 )
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]
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 foldersIf still you face some problem running the program read the comments below or post you query as a comment. You can also read a similar post about Installing Turbo C on Windows Vista.
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!
What is RSS ?


Tech Guru is a mobile-friendly website. Simply bookmark 
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.
ReplyDeleteYa May Be The Emulators R Not Getting Enough Physical Memory ...
ReplyDeleteHow can i give it enough physical mem?
ReplyDeletei edited the .conf file and make the max allocatable mem , thats 63 MB .. need a solution ,,
need a win 32/16 emulator also
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 ..
ReplyDeleteSo 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
z:\>mount k h:\turbo\tc(tried even without tc)
ReplyDeletedrive 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???
u must write
ReplyDeletez:> k:
before doing
z:\>cd bin
now do
k:> cd bin
I tried the above procedure on my XP (AMD 64 bit processor , with 32bit xp)
ReplyDeleteI 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)
Sry bro , but here it works fine ... Will have to see the problem at ur end ... :)
ReplyDeletethere is a little mistake in the code
ReplyDeleteafter 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
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.
ReplyDeleteBut 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??????????
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 ...
ReplyDeleteHi. Outspoken here. I had posted about include files problem. I realised later that the directories were wrongly set due to the following reason:
ReplyDeletemy 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!)
I got the solution of my problem and it's work properly.
ReplyDeleteI 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.
hi thank you very much all of you!!
ReplyDeleteThis thing works! one thing i was breaking my head over was the directory problem.....Please remeber to change directory to d:\include
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
ReplyDeleteok 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
hi i m vijay....
ReplyDeletei 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
why does it always give an error saying "can't open the include file stdio.h"
ReplyDeleteHello everyone...
ReplyDeleteeven 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
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.
ReplyDeletealt+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.
hi everyone....
ReplyDeleteif 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.
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.
ReplyDeleteSee , it's working . Might be a bug in Blogger that times, Resolved now .. Njoy !!!
ReplyDeletehey buddys ,,this is nick...
ReplyDeletei 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...
Check this comment as said by OUTSPOKEN ... Might help U .
ReplyDelete"
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.
"
i performed all that u said.its good only until we start compiling and once i compile its exiting out
ReplyDeleteCheck this comment as said by OUTSPOKEN ... Might help U .
ReplyDelete"
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.
"
when the Zprompt window opens..i write
ReplyDeleteZ:\>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..
when the Zprompt window opens..i write
ReplyDeleteZ:\>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..
after the Z prompt window opens..
ReplyDeletei 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.
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 .
ReplyDeleteLet'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 !!!
hey i tried the above and it was successful.......
ReplyDeletebut 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
@bove
ReplyDeleteU 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 !!!
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.
ReplyDeleteBcz in win98 one can take a printcopy by using ptrscree key but how to do it in vista.
Anita , use DOSBOX in window mode and then press print screen . Paste that file in paint brush and crop the image . Simple :)
ReplyDeleteIts not so simple,Bcz ptr screen is not working in vista .So any other suggestions!!!!!!!!
ReplyDeleteHey Anita try using this : Take Screen Shots in Vista : Snipping Tool : http://techix.blogspot.com
ReplyDelete/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.
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
ReplyDeleteSome 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
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 .
ReplyDeleteIn 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 !!!
hey yaar...
ReplyDeletei 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...
Thanks a ton! Works fine for me :)
ReplyDeletehey what i gonna do.?? i try all but its error.
ReplyDeletehelp!!
http://i395.photobucket.com/albums/pp34/nilvaris/Capture.jpg
can u help me?? i have YM nilvaris
hey what i gonna do.?? i try all but its error.
ReplyDeletehelp!!
http://i395.photobucket.com/albums/pp34/nilvaris/Capture.jpg
can u help me?? i have YM nilvaris
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...
ReplyDeleteHope this may solve the problem...
done,,but what i gonna do in directory??
ReplyDeleteJust find tc.exe and reach that folder and when u got that just type "tc.exe" like u do in simple DOS .
ReplyDeletehi 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.........
ReplyDeletehey, can anyone help me please!!
ReplyDeleteI 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?
Amazing................... I really appreciate ur work......... But why to repeat all steps again??
ReplyDeleteAnkur can't get you, can you elaborate on it ?
ReplyDeletedo we have to repeat these steps each time we want to use tc in fullscreen
ReplyDeleteWell 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.
ReplyDeleteMorover 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 .. :)
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..
ReplyDeletehello,
ReplyDeletei 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
For complete easy step by step instruction visit.. http://www.desiengineers.com/archives/288
ReplyDeleteFor complete easy step by step instruction visit.. http://www.desiengineers.com/archives/288
ReplyDeletei followed all the steps above and all excluding output is working fine.please help me it is urgent.
ReplyDeletemy 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
i got the output i am very very thankful to u
ReplyDeletecontinue this good job.
Thanx all for your comments :) Njoy !!
ReplyDeleteit works!!!
ReplyDeletethank you!:)
I want to purchase dell xps1530 which has vista premium os how it can be use to work with turboc3 programms
ReplyDeletehey guys pls tell me the whole procedure of running tc under dos box...
ReplyDeleteu 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
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 !!!
ReplyDeleteHi,
ReplyDeletesome 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
Thankss...
ReplyDeleteright side shift and double n single quote is also working fine.....
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.
ReplyDeleteplease help me...
your help would be very appreciated...
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
ReplyDeleteAm not able to mount the drive when i enter Z: mount d c:\Turbo\
ReplyDeleteIt says unable to mount drive plzz help
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
ReplyDeleteU can download Turbo C from http://cc.codegear.com/item/26014
ReplyDeletedosbox 0.72 cannot accept colon ->: how can i click this button
ReplyDeletethanks! now I can compile and run the program However, I have some difficulties that I can't type some symbols like {} or =
ReplyDeleteI tried the left shift button but it still doesn't work for me, what should I do?
Have a look @
ReplyDeletehttp://metaviewsoft.de/wordpress/?p=81
http://vogons.zetafleet.com/viewtopic.php?t=20040&sid=8d5eece5b6191eef33cb911e75091ff5
Hope this solve the above 2 queries !
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
ReplyDeleteIt 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
ReplyDeleteThanks for the help :-)
ReplyDeleteNytime :)
ReplyDeletei cant change the directory
ReplyDeletei do as u say but when i open a file from the turbo folder then it say invelid derectory
do something
You might be using different name for your folder. Recheck and input the path properly. It might differ from system to system.
ReplyDeletemr 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.
ReplyDeleteNow, I would have to see the prob myself. Can you upload some screenshots of error ?
ReplyDeleteactually 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.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteWith trials and errors, I found the solution.
ReplyDeletefollow 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? ^_^
Additional info:
ReplyDeleteIf 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. ;)
the math.h functions dont work in dev-c++
ReplyDeleteMath.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)
ReplyDeleteHey 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!!!!
ReplyDelete0e..itz dun fo d frst tym..bt do i actually needa repeat d stuff evrytym i do..huh..??..
ReplyDeletesinc tz lengthy..so z deya ne otha shortcut i cn create??..
hi NISHA here..
ReplyDeletei proceed step by step...it compiles successfully but at run time it shows "unable to open COS.OBJ"
PLZ HELP ME OUT PLZZZZZZZZ
@bove : Read the comments again, the solution to ur ques has been discussed !
ReplyDeletesir 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
ReplyDeletehi vishal here.....
ReplyDeletethanks...........
c:\> cd bin
ReplyDeleteunable to change to: bin
please help me
Post all the commands you are entering !
ReplyDeletethanks shubham... i got the solution i created different folder so it was unable to change .. now its workin perfectly fine....
ReplyDeletefrom:meghana
Nytime :)
ReplyDeletehi shubham
ReplyDeletei have the following problem while running any program
it says unable to create output file 'c:\tc\source\noname00.obj'
i also wanted to ask that the location of which directories have to be changed???
ReplyDelete1. include directories
2. library directories
3. output directories
4. source directories
Goto Options > Directories inside TC and then delete the text from Output Directory and Source Directory !
ReplyDeleteYou just need to change the include and library directories !
ReplyDeletemany thanks, it's really works!! once again, thank you..
ReplyDeletehi
ReplyDeletei 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?
plz provide me solution for my problem shubham
ReplyDeleteI have answered this ques again and again and again. Kindly read the comments above, you need to change the Directories in the Options.
ReplyDeletealt+f9 is not working to make screen in full mode
ReplyDeleteplz help
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@bove
ReplyDeleteCan you paste here all the commands you used. I suspect you are giving the wrong path again !
Heyy you guys!!!
ReplyDeleteit'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 :)
Hi Shubham....
ReplyDeleteThis 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.
This comment has been removed by the author.
ReplyDeleteWell, it should work...
ReplyDeleteMmmm... 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 !
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?
ReplyDeleteAlso, I will try and mount someother drive which is not present and will update you...
Thanks
a huge thanx to shubham and also to genesis. i wud advise shubham to add the two screenshots genesis gave as it clarifies evrything.
ReplyDeletesecond day using c. this article was a huge relief!
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
ReplyDeleteSo 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!
You don't need to specify output directory, otherwise it will raise linker error.
ReplyDeleteThis 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!
ReplyDeleteDisregard the last one. I found that I had to "Run as Administrator" DOSBox. Stupid Administrator thing. Hahaha!
ReplyDeleteBut 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! :-)
Check You Code Again ! :)
ReplyDeleteI'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.
ReplyDeletei've installed dosbox.everything is working gud.but i'm getting full screen in red colour..can i change the colour to blue .
ReplyDeleteCan you share the screenshots ?
ReplyDeletejey... i hav tried all... but still getting BGI error...
ReplyDeletewhat to do????? plz... help....
hi....
ReplyDeleteplz 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???
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. :-)
ReplyDeletei am running tc normally without dos box,in graphics mode. i get the output n all but i want 2
ReplyDeletecopy that output into paint or ny such thing for printing. plz help
shubham buddy !! thank you for your post and other and special thanks to the website.
ReplyDeletemy 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
i have a real problem.. i put everything u say
ReplyDeleteand 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
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@bove
ReplyDeleteI have already answered your question in my post. Read the last part.
I couldn't go beyond
ReplyDelete(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
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.
ReplyDeleteinfact 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
Hi guys here is kapil.
ReplyDeleteI 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...
thax so much
ReplyDeleteHI,
ReplyDeletei 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
SOLUTION TO ERROR : UNABLE TO OPEN STDIO :
ReplyDeleteGO 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
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
ReplyDeletehey Shubham....ur solution really helped...
ReplyDeleteJust 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....
Try alt + enter. It will work for you !
ReplyDeleteThis comment has been removed by the author.
ReplyDeletehey guys now help me with this problem.....
ReplyDeleteafter runnin program m getin an error like unable to open 'COS.OBJ'.......
hey guys m facin prob in getting output........
ReplyDeleteits showing error like unable to open 'COS.OBJ'
i still get a message saying unable to open file
ReplyDeleteplz can ne 1 help???
i changed dah directories 2...
iam also facing the same problem can u help me
Deletemy id is qw12ab34@gmail.com
there is no problem to open the c++ window , but it does not include the header files such as iostream.h
ReplyDeletePlease tell me what i have to do?
hey! Thanks for the help :) needed to test something...
ReplyDeleteand in this small world, I think I know you probably JUIT.?
Hi Sach,
ReplyDeleteAnytime :) I'm from JIIT :)
awsom realy workd...
ReplyDeletetanx was easy to understand...
ReplyDeleteSOLUTION TO ERROR : UNABLE TO OPEN STDIO :
ReplyDeleteGO 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
Hi guys here is kapil.
ReplyDeleteI 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...
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.
ReplyDeleteinfact 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
I couldn't go beyond
ReplyDelete(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
shubham buddy !! thank you for your post and other and special thanks to the website.
ReplyDeletemy 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
Check You Code Again ! :)
ReplyDeletea huge thanx to shubham and also to genesis. i wud advise shubham to add the two screenshots genesis gave as it clarifies evrything.
ReplyDeletesecond day using c. this article was a huge relief!
alt+f9 is not working to make screen in full mode
ReplyDeleteplz help
thanks shubham... i got the solution i created different folder so it was unable to change .. now its workin perfectly fine....
ReplyDeletefrom:meghana
c:\> cd bin
ReplyDeleteunable to change to: bin
please help me
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
ReplyDeletehi NISHA here..
ReplyDeletei proceed step by step...it compiles successfully but at run time it shows "unable to open COS.OBJ"
PLZ HELP ME OUT PLZZZZZZZZ
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)
ReplyDeletethe math.h functions dont work in dev-c++
ReplyDeleteNow, I would have to see the prob myself. Can you upload some screenshots of error ?
ReplyDeletedosbox 0.72 cannot accept colon ->: how can i click this button
ReplyDeleteU can download Turbo C from http://cc.codegear.com/item/26014
ReplyDeleteHi 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
ReplyDeleteAm not able to mount the drive when i enter Z: mount d c:\Turbo\
ReplyDeleteIt says unable to mount drive plzz help
hey guys pls tell me the whole procedure of running tc under dos box...
ReplyDeleteu 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
I want to purchase dell xps1530 which has vista premium os how it can be use to work with turboc3 programms
ReplyDeletei got the output i am very very thankful to u
ReplyDeletecontinue this good job.
done,,but what i gonna do in directory??
ReplyDeleteWell, 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...
ReplyDeleteHope this may solve the problem...
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
ReplyDeleteSome 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
Hey Anita try using this : Take Screen Shots in Vista : Snipping Tool : http://techix.blogspot.com
ReplyDelete/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.
Anita , use DOSBOX in window mode and then press print screen . Paste that file in paint brush and crop the image . Simple :)
ReplyDeletecan 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.
ReplyDeleteBcz in win98 one can take a printcopy by using ptrscree key but how to do it in vista.
when the Zprompt window opens..i write
ReplyDeleteZ:\>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..
i performed all that u said.its good only until we start compiling and once i compile its exiting out
ReplyDeletewhy does it always give an error saying "can't open the include file stdio.h"
ReplyDeleteok 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
ReplyDeleteok 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
Hi. Outspoken here. I had posted about include files problem. I realised later that the directories were wrongly set due to the following reason:
ReplyDeletemy 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!)
there is a little mistake in the code
ReplyDeleteafter 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
z:\>mount k h:\turbo\tc(tried even without tc)
ReplyDeletedrive 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???
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 ..
ReplyDeleteSo 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
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.
ReplyDeleteI am getting an error "unable to change to TC" after the step -D:\> cd TC
ReplyDeleteafter 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
ReplyDeleteYou question has already been answered in the last section of the post !
ReplyDeleteTurbo C can run in vista easily.
ReplyDeletei 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
ReplyDeletealso when i open any earlier saved program through dosbox,it shows invalid drive or directry.. :( plz help me...thanks
ReplyDeleteHi,
ReplyDeleteI 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.
Hi Shubham
ReplyDeleteI 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.
Hi,
DeleteTry to get Graphic drivers for your system from your system manufacturer !
Prashant
ReplyDeleteok shubham, i will try.