Friday, December 4, 2009

C++ with DOSBOX in Windows 7

IdeaHow To Run Borland Turbo C++ In Windows 7:Idea

Download Borland Turbo C++ From Here:

http://rapidshare.com/files/124684089/Borland_Turbo_CPP_v3.zip

 Install the software DOSBox ver 0.72 ( 1.2 MB ) (Freeware) from the link below
(Direct Link)
Code:http://prdownloads.sourceforge.net/dosbox/DOSBox0.72-win32-installer.exe?download


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

Copy the TC into the Turbo folder

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

Then u are presented with two screens which look like the command prompt in
Windows

Now u are presented with two screens. One with a Z prompt. U can ignore the other
screen.

There type the following commands at the command prompt Person:
Mount [Type in any alphabet that u wish except z] [Type the source of the turbo C]
press enter

Now , Type in the following commands after the Z prompt:
Z: mount d c:\Turbo\ [The folder TC is present inside the folder Turbo]

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

Now type d: to shift to d: prompt .

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

D: cd Bin

D: TC or Tc.exe [This presents u the Turbo C++3.0 screen]

On the Turbo C++ goto Options>Directories>Change the source of TC to the source
directory Drinks ( 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 )
===========================================================
In order to get the full screen use the key combination of Alt and Enter

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)

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

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

The above procedure has been successfully implemented on Windows Vista Ultimate 64
bit & is operated in Windows 7 also perfectly ! Confused

IMP : Don't use shortcut keys to perform operations in TC because they might be a
shortuct key for DOSBOX also . Eg : Ctrl+F9 will exit DOSBOX rather running the
code


Still have problems in working-out ??? Mail me  Stick out tongue

6 comments:

  1. That is fine, actually Turbo C++ IDE screen is in Blue everywhere, but accessing thru' DOSBOX, i am getting background with Blue in IDE. How can i change it?

    ReplyDelete
  2. you've to customize the IDE settings each time you login, i'm sorry to say tat i don't have a solution for it as of now. i'll let u know when there is a fix for it !

    ReplyDelete
  3. hi
    i have win7 64bit and do all of your way to run c++ in dos .but shown why?
    thanks

    ReplyDelete
  4. @sitwebdesign: i've used DOS just because, most of the 'no-voice' users aren't aware of shell`s features and the ways to work on it... The steps which are given above works on all versions of WIndows 7 as well as on that of Vista ! You can revert back here with a comment if you face even a single issue...

    ReplyDelete
  5. hi my c++ program is not compiling in the dosbox ,,it is showing that #include is invalid

    ReplyDelete
  6. i downloaded the dosbox n did all the steps bt whn i try to change the directory to tc it is showing
    Unable to change to: tc

    ReplyDelete