TURBO C++ FOR WINDOWS 7 AND VISTA

Picture
To make a Turbo C/C++ setup run in windows I have made a integrated setup of Turbo C and Dosbox that on execution directly loads up "Turbo C" and runs it in fullscreen in all version of windows and with full compatibility, which will give us an experience of running "Turbo C" in just like pure Dos environment.

Requirements:

To achieve the same you need first make sure you have got the following tools ready:-
  1. Dosbox setup, you can get it from here, please download the windows version.
  2. NSIS (Nullsoft Scriptable Install System), get it from here.
  3. Resource Hacker(Optional), only needed if you would like to change the icon of your setup file. You can get from here
  4. HM NIS EDIT( A free NSIS script editor), it will help you create your NSIS script more easily.
  5. Icons if you would like to add you custom touch(Optional), find it over Google.
  6. And Obviously  "Borland Turbo C++ 3.0" setup, you can get one from here.

Build-up Process:

When you have all the necessary files and tools you can start the compilation process.

  • At first please install "Dosbox" into any temporary folder, I installed mine into a folder "Temp" on desktop.
  • Then install "TurboC" setup that is included, it will be installed by default into a folder "TurboC3" on your C drive.
  • Now Create another folder called "setup" on your desktop.
  • Now start "Dosbox" and press "ctrl+F1", it will start the key-mapper, now since  Dosbox also uses some short-cuts same as TurboC it conflicts these two. So we are no going to change that, by changing dosbox default mappings. For this after opening the mapper which will look somewhat like this, please take a look at the REd markings because they are important to be changed.

  • Note that every default short-cut will have only "Mod1" attached,  so just attach "mod2" also to those marked with red.
  • Now after changing like that for all other short-cuts marked in red, click on "save" button. 
  • Then open the folder "Local settings" present in your user account folder inside "Documents and settings"  and find a folder called "Dosbox" in it and copy two files "dosbox-0.74.conf" and "mapper-0.74.map" into the "setup" folder on your desktop. For me the folder name was "C:\Documents and Settings\NeutroN\Local Settings\Application Data\DOSBox" find what yours is.
  • Create another folder called "Disk" in your "setup" folder, and copy the "Turboc3" folder in your C drive along with its contents into this folder.
  • Copy three files "Dosbox.exe", "Sdl.dll" and "sdl_net.dll" from the "temp" folder (where you previously installed "Dosbox") into the folder "setup". 
  • Your setup folder will look something like this then(Click to view pictures below).
  • Open "dosbox-0.74.conf" with notepad/Wordpad and add some lines to it at the end of it and save it as "dosbox.conf".
                                    "mount C: C:\turboc++\disk\         
               c:
               cd turboc3\bin               
               tc.exe"
please take a look at the above picture for reference, you can also download this file pre-made file here. Here the folder "Turboc++" present in "C drive" refers to your installation directory and you have to be strict with its name and path.
                                                               For example if you have chosen something like "BorlandC" on D drive for install location then you have to replace this line with "mount C: D:\BorlandC\disk\" .
(Those who are familiar with Dosbox commands no problem)
  • If you would like to change the default icon of Dosbox executable like I did then run resource hacker and open the "Dosbox.exe" file with it and replace the icon with a icon of your choice, I am not mentioning this process here because it is necessary just optional if you would like to add a customized touch of yours, you can find it on the web just Google it "resource hacker replacing icon of exe file" or something like that.
  • Now finally please copy your "setup" folder to your destination drive path( i.e. where you would like to install it) and rename the folder to your desired choice keeping in mind the previous step ( i.e name and path of the folder you wrote in configuration file) and run "dosbox.exe" file and check if "TurboC" starts, if it does then Congrats!,  you are ready to  start building the installer, if not please re-check for your mistakes or errors. 
Building the installer:


Well once you have successfully been able to run turboC in Dosbox with short-cuts ok, then you may or may not opt to build an installer for this, but if you want to give this to your friend or you keep formatting your windows many times, and you want to save yourself the trouble of going through this process again and again then nail it once in for all by creating an installer.

Note:- I am not going to explain this part in much detail, as this anyway is for advanced users only.

Building the installer is quite simple, just follow the steps below:-
  • First of all install "NSIS" and "HMNISEdit".
  • Then run HMNIS edit through its desktop short-cut and click on "wizard" icon on the top-left corner and click on "Next".
  • Write the application/product name something like "TurboC++" and then give all general info.
  • Select the install directory, here NSIS uses some custom variables you don't need to worry about that if you are having trouble, just play around with them or use the NSIS help manual that was installed along with NSIS(keep in mind the previous info while choosing installation directory name and path).
  • Next add the whole "setup" folder in the add files section .
  • Add all the necessary short-cuts the one and only important one is for "Dosbox.exe" rest are not necessary.
  •  Now click on "Compile and run" just on top of edit windows in HMNis edit, your files will be added and compiled into a setup file now you can run and test your installer.
  • Just go through the screen-shots below for help.
Some useful info:-
  • If you want dosbox to always start in fullscreen mode then open the "dosbox.conf" file and change the portion written "Fullscreen=false" into "Fullscreen=true".
  • IF you don't want the console to always pop-up while running then create a shortcut to "dosbox.exe" and append the line "-noconsole" to its target path.
  • You can also get this software already made by me, just click here if you would like to skip all this work and get the app.
Enjoy guys.....
 


Comments

Li Ma
10/25/2011 05:37

Hi,Dude,Thanks for your step-by-step tutorial! While I am a senior from China,I don't know what happened to my situation,that is, no matter how I try and what I can try, I just can't visit http://www.mediafire.com/?zz54n6z4kikp8t0 , so I can't download the essential "Borland Turbo C++ 3.0" file, would you so kind to sent me a copy(I guess it is not so large in volume )to me? My email is Crazyman.lima@gmail.com.

Many Thanks again!

Reply
10/25/2011 11:44

Ok i will mail it to you, but i can't see any problem that is obstructing the download of this file. Anyway i have sent it to you.

Reply
Marwan Koromba
11/13/2011 13:13

Hi thanks alot for the hellp .and it plesuer 2 know u ,bro, I am from sudan and I am a computer scince student . but I am sorry 2 tell u that I have faced a proplem in visiting the mediafire wepsite 2 download the turbo c++ 3 .
So I well be thakfull if u send it 2 me at mimokoromba@yahoo.com

Reply
11/13/2011 21:53

Here you can download it

https://skydrive.live.com/?cid=fc32d8043813b2ae&sc=documents&id=FC32D8043813B2AE%21114#

it is also mentioned in the alternate download link section.

Reply
jenish
11/18/2011 10:46

I CANT get in full size in my lap!!
What to do??

Reply
11/21/2011 09:15

@jenish change the video mode to appropriate one in settings of dosbox.conf
according to your video controller chipset.

Reply
KRIPA SHANKAR
12/03/2011 21:42

Very Impressive work.....By the way , I am in your facebook friend list too.
Can I take help from you if I have some problem in C programming....I am still a novice as I am in B.C.A. Ist year

Reply
K
12/04/2011 01:35

Reply
KRIPA SHANKAR
12/04/2011 01:39

I have successfully made this software as per the steps written above but one problem is that for compiling the program the key combination Alt+F9 works but for running the program the key combination Ctrl+F9 does not work.I have to run the program from Run in Menu Bar.Please provide suggestions.Thank you.

Reply
12/04/2011 11:13

@kripa Shankar, After opening keymapper change the add mod2 to shutdown command and save it.

Reply
rajnish sharma
01/13/2012 09:02

Thanks for these guidelines.

Reply
02/17/2012 23:52

thank's for the guaiden's

Reply
Sumeet
02/22/2012 10:47

Awsome work.. thanks..:)

Reply
PANKAJ
02/25/2012 21:29

hey i downloaded n installed this software but when i tried to open this i am getting a black screen . i tried pressing some keys but i didn't get the actual window
can u please help me

Reply
NeutroN
03/03/2012 12:27

@Pankaj you should download the lates version first and try to install and run it if it is not running then mail me the problem you are facing.

Reply
03/17/2012 23:11

Hi,, awesome work. Im doin BE in Comp Sci &engg, second year :) would you lemme add you on fb and like my community, C programming? I m new to programming, but i am quite good, would love to have you suggest/ critique on my programs

Reply
BinYamin
03/17/2012 23:15

sorry forgot to send the link. Its www.facebook.com/CkCoder
And my real name is Shaha Hassan

Reply
05/29/2012 07:22

Hi......,i have an lenova laptop and i install your turbo c setup in this but this is not run in full screen mode can you tell me.............

Reply
05/30/2012 00:33

Please download latest version and if it doesn't work then try older versions

Reply



Leave a Reply