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 :)
Why do you want to 'put it in your console'? Why don't you create a window with some space for a bitmap?
> 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
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...
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????
We work in console just first year. Plus I learn some new things (like OpenGL, win api and others) by myself!
> 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).
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.
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 :)