Advertisement

Console mode graphics

Started by July 25, 2000 08:13 AM
7 comments, last by cohen1 24 years, 4 months ago
How do you initialize the graphic library in console mode using VisualC++ 6?
i don''t know what you mean by graphic library for the console (and i don''t think there is one), but there are some api functions that you can use to manipulate the cursor/cursor position and therefore draw "directly" to the screen.
unfortunately i can''t remember them, nor do i have a documentation here.
look for something like GetStdHandle and search your way thru msdn

hope that helps
ridcully
Advertisement
there is no graphics library for Console mode... its real messed in the head... its not realy a dos application and its not realy a windows app... its some where in between....
You can''t go graphics of any kind in it....

Great Milenko

Words Of Wisdom:
"Never Stick A Pretzel In Your Butt It Might Break Off In There."


http://www.crosswinds.net/~milenko
http://www.crosswinds.net/~pirotech

The Great Milenko"Don't stick a pretzel up your ass, it might get stuck in there.""Computer Programming is findding the right wrench to hammer in the correct screw."
If you want to do console mode graphics, get DJGPP and Allegro. http://www.delorie.com I think.
- DanielMy homepage
Or learn that changing certain values at address 0xA000 and the following 64000 bytes can be rewarding (this is for most systems, not all)


-Chris Bennett ("Insanity" of Dwarfsoft)

Check our site:
http://www.crosswinds.net/~dwarfsoft/
Check out our NPC AI Mailing List :
http://www.egroups.com/group/NPCAI/
made due to popular demand here at GDNet :)
dwarfsoft:
I''ve tried that before. I got an illegal operation, then my app terminated. Guess my system doesn''t cut .
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.
Advertisement
Don't worry, NuffSaid, it's not your computer. Win32 programs, which is what console programs in VC 6.0++ are, are not allowed to access I/O ports(even memmory mapped) or use interrupts.

Edited by - Sheltem on July 31, 2000 4:05:08 AM
Console applications are just as much Win32 applications as GUI Win32 applications. They just use the console subsystem (obviously, since Windows 9x and Me have DOS in them DOS has a hand in making them work when run on those platforms, but that has nothing to do with the application itself).
VC++''s console apps don''t support graphics. They are just 32-bit tex-only mode programs with little to no use.

If you want a good 32-bit DOS compiler, get DJGPP and Allegro as was suggested before. Get it at DJGPP Website

From->~Lucas();
-=[ Lucas ]=-

This topic is closed to new replies.

Advertisement