How can I run a C++ program in Windows 7?

piush December 20, 2010

How to run C++ program in Windows 7 32-bit?

  1. Anonymous
    February 12, 2012 at 9:15 am

    In 7th step after tc it shows "Failed to locate DPMI server"......

    Please help... What to do next....??

  2. Konvictx Mahe
    February 4, 2012 at 3:19 pm

    i tried to open another program using dosbox due to which my installed c language is dissapear now.. how can i again open c???

  3. Konvictx Mahe
    February 4, 2012 at 3:17 pm

    hi i have installed turbo c through dosbox but when i compiled my program it gives error i.e #include cannot be execute... what can i do now??

  4. Sandhu1991gk
    December 11, 2011 at 2:23 am

    How can i download turbo c++ in window 7 64-bit

  5. Koushikcool15
    November 25, 2011 at 4:01 am

    any one send me the link of turbo c++ 3.1 white screen version....

  6. sweety
    October 18, 2011 at 5:22 am

    how to run c,c++ in windows 7.

  7. Patel_harshal1989
    October 9, 2011 at 11:45 am

    how to open any cpp file which i have downloaded from mail

  8. Patel_harshal1989
    October 9, 2011 at 11:45 am

    how to open any cpp file which i have downloaded from mail

    • Tina
      October 9, 2011 at 12:11 pm


      I'm not sure what a cpp file is. Can you elaborate?

      In any case, I would recommend you to ask a new question. Please provide a thorough description of what you are trying to do, where this file is from, and where you downloaded it from.

      Thank you!

  9. Rahul_kumar090
    September 28, 2011 at 7:58 pm really work....thanx a lot

  10. Abdul Rasheed
    September 14, 2011 at 6:33 am

    I have installed DOSBox 7.4, created C file then compiled but not able to run program, the problem is .exe file not created, how to resolve the issue?

    • Cjcingh
      March 11, 2012 at 6:28 am

      having the same prob! tried several options, nothing concrete!

  11. Abhisiktapatro
    September 3, 2011 at 3:21 pm

    How to do graphics program in window 7 environment???

    • Tina
      September 5, 2011 at 6:31 pm


      I'm afraid I do not understand your question. However, if you are able to describe in detail what you are trying to do or what your issue is, then I recommend you to ask a new question. This way your question will receive a great exposure as it will be featured on the frontpage of Answers.

  12. Fusiongemini
    August 23, 2011 at 11:24 am

    I face a problem exactly like Isita95 2010. I've got no ide what to do. Plz help!

    • Tina
      September 5, 2011 at 6:30 pm


      like Ishita above, I recommend you to ask a new question.

  13. Ishita95 2010
    August 19, 2011 at 12:45 pm

    i have installed dosbox and the c++ software is working up to the compilation part..but the output scren is not being displayed at all..neither by using the mouse to run the program.....plz help me out

    • Tina
      August 21, 2011 at 4:24 pm


      the question above is fairly old and unlikely to receive any attention other than from people searching for an answer like yourself. Unfortunately, I don't know the answer. Thus I recommend you to ask a new question.

    • Livewire_rockstar
      November 30, 2011 at 12:56 pm

      ishita first check whether u hav given the "getch();" command at the end of the program or not if you hav given the command and still u dnt get the output window then just press Alt+F5 to display the output window

      • dJ
        January 11, 2012 at 8:48 am

        thanks dude that worked for me!! (damn i was messing with this)

  14. Sweetypatel 8
    July 28, 2011 at 10:21 am

    i have installed the dosbox as u mentioned above...but after mounting drive ,i wrote command cd tc it works but cd bin did not.the message is display like"unable to chage to: bin".So now what could i have to do???plz reply..

    • Sonam
      October 10, 2011 at 5:47 pm

      so wat did u do to hlp it...!!!

  15. Arghya Sumu
    July 27, 2011 at 2:14 pm

    Will this process also work in running Graphics program in WINDOWS 7 64bit version??

  16. Maniraj
    July 26, 2011 at 12:56 pm

    i have installed the dosbox as mentioned above ... but i couldnt open the output window while running c program in tubo c ... wat may be the problem ... please do help

  17. Venkatesh
    May 9, 2011 at 12:46 pm

    After running the tc ++ using dosbox, i m getting an error that iostream.h file not found, cout not found.

  18. Frizzit
    February 2, 2011 at 4:45 pm

    I use vmware and a copy of windows xp to run a virtual xp machine on my vista 64 machine. Compiling a 32 bit program be it vb, c++, c, assembly can be a real hassle on a 64 bit machine. Using Vmware will help, but I would suggest learning to use a new compiler that will work on a 64 bit machine and has a strong support group like eclipse.

  19. Anonymous
    January 3, 2011 at 7:09 am

    When you're done making a computer program using a particular language, don't be afraid to learn another.Learning how to impress a girl is a continuous process. Once you're familiar with one computer language, and you've already made a program using such, don't stop there. Instead, learn a second language and begin making another program using that language. You'll learn more if you'll choose a language that employs a completely different paradigm than the one you've previously used.

  20. RJ
    December 21, 2010 at 11:40 am

    Just download Dev C++ for win 7 32 bit n open your file in it.

  21. Anonymous
    December 21, 2010 at 10:10 am

    1. Install the software DOSBox ver 0.73 : download here
    2. Create a folder,for example „Turbo“ (c:Turbo)
    3. Download and extract TC into the Turbo folder (c:Turbo): download here
    4. Run the DOSBox 0.73 from the icon located on the desktop:
    5. Type the following commands at the command prompt [Z]: mount d c:Turbo [The folder TC is present inside the folder Turbo]
    Now you should get a message which says: Drive D is mounted as a local directory c:Turbo
    6. Type d: to shift to d:
    7. Next follow the commands below:

    cd tc

    cd bin

    tc or tc.exe [This starts you the Turbo C++ 3.0]
    8. In the Turbo C++ goto 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:TCinclude and D:TClib respectively )

    You can save yourself some time by having DOSBox automatically mount your folders and start TurboC++:

    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 DOSBox starts.
    Automatically mount and start Turbo C++3.0 in DOSBox ver 0.73:

    Those commands will be executed automatically when DOSBox starts!

    Please note:

    Full screen: Alt and Enter

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

    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 .


    To use Turbo C++ IDE in windows 7 or in Vista; For those who wants to learn C/C++ just uninstall your "Graphics driver "
    For that Computers->properties->device manager->Display Adapters->graphics driver version u have uninstall that...And after log off Run your "C:\TC\BIN\TC.exe".it will open in full screen...

    Just Load the files in C:TC ( Hard disk c: drive)
    It is the default location for TC.

    Enter these lines in the Dos Box options file. (Start menu – Dos box – Options – DOSBox 0.74 Options) That opens in notepad.

    Scroll down in the notepad file – After these lines

    # Lines in this section will be run at startup.
    # You can put your MOUNT lines here.”
    type as below :

    mount c c:
    cd tc
    cd bin

    Alt + Enter for fullscreen, Alt + x to exit TC. Type exit to close Dos Box.

    Click on Run in the menu – Don’t use Ctrl + F9 to run program. (It will close Dos Box). All directories are set by default location.

    Software to run C programs on Windows 7
    Copy the source code to Visual C++ ( Comes with Visual Studios 6.0 , 2005 , 2008 , 2010 etc. ) and compile .... The exe created would be compatible with your OS .

    Windows is not like linux which has C/C++ compiler provided with the OS. You need to get your own.

    Try Visual Studio Express. It's free, it's from MSFT and it's good. You'll be able to compile and create executable files.

    In the File menu, select Create a new project. Depending on what your CPP file is about, a Win 32 -> Console Application is the simpliest you can do.

    Add your CPP file and hit the build command. You'll probably have tweaking with include files to get it to compile

    Install Dev C++
    or Code::Blocks
    both of which uses the MinGW 32-bit development environment environment for building applications.

    Both of these tools are a little bit old, and neither is great for developing Windows applications, but for learning C/C++ they should do just fine.

Ads by Google