TURBO C++ FOR WINDOWS 7 AND VISTA
Requirements:
To achieve the same you need first make sure you have got the following tools ready:-
- Dosbox setup, you can get it from here, please download the windows version.
- NSIS (Nullsoft Scriptable Install System), get it from here.
- Resource Hacker(Optional), only needed if you would like to change the icon of your setup file. You can get from here
- HM NIS EDIT( A free NSIS script editor), it will help you create your NSIS script more easily.
- Icons if you would like to add you custom touch(Optional), find it over Google.
- 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".
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.
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.
- 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.












RSS Feed