Thread: Screenshot into console

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    35

    Screenshot into console

    Hi, everybody! I'm sory for posting that topic in Windows Programming, but i didn't find where to post it...
    Well, my problem:
    I need to make a screenshot into my fullscreen console, where I use graphics. Is that posible?
    I work under windows, and i'm using TC++ 3.0
    thanks for your answers
    im from LMoldovaZ

  2. #2
    Registered User Ktulu's Avatar
    Join Date
    Oct 2006
    Posts
    107
    Why do you want to 'put it in your console'? Why don't you create a window with some space for a bitmap?
    This parameter is reserved

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > I need to make a screenshot into my fullscreen console
    A win32 console isn't capable of displaying graphics

    > and i'm using TC++ 3.0
    Ah well, that's different - what you have now is an icky DOS emulation.
    Yeah, you can have graphics (see what's in graphics.h), but it won't be very good. Poor resolution, very few colours, slow etc etc.

    Why not upgrade to a proper 32 bit compiler, and a decent graphics library like OpenGL / DirectX / SDL
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Oct 2005
    Posts
    35
    I wrote that program not for myself but for my teacher. I study at the university, and at the first year we work in TurboC++_3.0 IDE, and I must made a program with graphics (using graphics.h) in this IDE. That's why I'm not using graphics lybraries like OpenGL and others...
    im from LMoldovaZ

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    OK, so how ill-prepared for the outside world do you want to be when you leave university?

    Jeez, Win95, Win98, Win-ME, NT, Win2K, WinXP, Vista - how many more releases of 32 bit operating systems do there have to be before people stop using DOS compilers????
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Registered User
    Join Date
    Oct 2005
    Posts
    35
    We work in console just first year. Plus I learn some new things (like OpenGL, win api and others) by myself!
    im from LMoldovaZ

  7. #7
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    > A win32 console isn't capable of displaying graphics

    You can get the handle of the console window and treat it pretty much like any other window (the simplest way is the GetConsoleWindow function).
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  8. #8
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Quote Originally Posted by LMZ
    We work in console just first year.
    That's no excuse for using a compiler about 15 years or more old. Visual C++ 2005 Express can compile programs for the Windows console.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  9. #9
    Registered User
    Join Date
    Oct 2005
    Posts
    35
    Well, I found a best way...... I made a photo of my monitor....-\, it's better than nothing.
    New task, teacher allowed me to realize using graphics libraries, like OpenGL and others
    im from LMoldovaZ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console, Terminal and Terminal Emulator
    By lehe in forum C Programming
    Replies: 4
    Last Post: 02-15-2009, 09:59 PM
  2. Full Screen Console
    By St0rmTroop3er in forum C++ Programming
    Replies: 1
    Last Post: 09-26-2005, 09:59 PM
  3. Problems with a simple console game
    By DZeek in forum C++ Programming
    Replies: 9
    Last Post: 03-06-2005, 02:02 PM
  4. Console Functions Help
    By Artist_of_dream in forum C++ Programming
    Replies: 9
    Last Post: 12-04-2004, 03:44 AM
  5. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM