Written on April 9th, 2009 at 12:15 am by

47 Comments

How to take Screenshot of c/c++ graphics program in turbo c without using Windows98

Many face problem of how to take Screenshot of C/C++ graphics program done using Turboc.Especially students.The reason is Print Screen nor any screen Capture software work in Graphics Mode of Turboc.End result not able to show output to their teachers or doing paint work in MS paint :)

Here is a simple solution to it..

1.compile your code.
2.Now select Build All.(compile->Build all)
This will create a Exe of your program in the current working directory.
3.Download DosBox
4.Install it and run the EXE.

dosbox
5.Now you should mount the current working directory of turboc .
For example: type

mount o e:/TCC

mounting dosbox
6.Now TCC folder will be mounted in to a Virtual Drive o.
7.Navigate to virtual drive o.
naviagate
8.Now type the name of the program.

For Example: grpahics.exe

output
9.you can see the output.Now press “print Screen” or use any software to capture the output.For full screen press ALT+ENTER.


Demo of C Graphics Program Running via Dosbox:

C Graphics Program Running via Dosbox

Hope this post helped..
Know any other easier method do let me know..

Want useful tips like this in future too?Dont miss out any updates ,Just Sign Up for Free Newsletter below

Get Free Newsletter
c++ take screenshot, Capturing Graphical Screen C & C++, how to take print out of graphics screen of c, how to take screen shot from c, how to take screenshots in C, screen capture c++ graphics, software for taking screenshots from c++, take screenshot c++, take screenshot in c, turboc graphics program screenshot

47 Responses to “How to take Screenshot of c/c++ graphics program in turbo c without using Windows98”


  1. Saish Dhuri

    10 months ago

    Thank You very much dude. . .
    U did a great job. . . Thank you . . . !!!

    Reply

  2. glory

    6 months ago

    thank God..to get this page from you..

    thanks a lot.

    Reply

  3. neetu

    5 months ago

    thanx alot……….its really awesome

    Reply

  4. Abhishek

    4 months ago

    Thanks a lot dude for this information..:D :D
    Gr8 job!!

    Reply

  5. kenneth^^

    3 months ago

    sir .??

    howdi .!

    would tou plz help me in making a program that is used in the restaurants menu’s?? usibg TURBO C++. . ^^

    tnx

    Reply

  6. avinash

    2 months ago

    Dear sir,

    When i run the graphics program in dosbox in window 7 then give error message graphics not initialize use init graph.

    Reply

  7. harry

    2 months ago

    i use only c not a c++ i can’t take it screen shot bro…
    plz help me…
    fast replyyyy……

    Reply

  8. volcanofurious

    1 month ago

    hi,
    ive jus successfully mounted using the commands, and typed the file name “myfile.exe” in the path “O:/”. it shows “BGI error:graphics not initialised.use ‘initgraph’ “. darn sure.. its running on an ordinary C compiler. u mind helping me bro .. will owe ma big time for that :>

    Reply

  9. Roshan Patel

    2 weeks ago

    Hey Sham,
    I have got another way to get those screenshots.
    Have a look at it.
    Hope that works for you all. :)
    Windows7 Users.

    1) Double click on file
    2) Error message: “The system doesnt support fullscreen mode. Choose Close to terminate the application.
    3) Click “Ignore” next to close(which is next to ignore, lol)
    4) A window opens up(in case of turbo c++, names Turbo C++ IDE)
    5) right click on the bar where the minimize, close buttons are located(sry, i dont know its name)
    6) Click on properties.
    7) Select font tab, select lucida console.
    8) In the same window there comes an option, “size” –> select appropriate size of the window(differs from one screen resolution to other)
    9) Click OK and have fun

    Reply

  10. bhavna

    1 week ago

    when i enter the file name to run it says illegal file but there exist an exe file plzz help me

    Reply

  11. sandeep

    6 days ago

    thanx,it really works.

    Reply

Leave a Reply



Previous Post:

Next Post: