![]() |
|
#1
|
|||
|
|||
Windows XP - Graphics in DOS console?Hello to all Forum Members!
I'd like to ask whether anyone can give me some advice on where to start looking for information about drawing graphics (ie pixels) to the DOS console available in Windows XP. Basically I've some routines that I used many years ago but I just can't seem to get them to work anymore. I'm not the most experienced 'coder' in the world but I can get by... usually! I am assuming this CAN be done... after all some of the simpler programs I wrote and compiled back then work in XP, as do some of the older games programs I bought at that time... I'm using XP and Visual C++ 6 with SP6. Thanks for any help you can provide Lefunkster p.s. please, please don't tell me it's going to have to be DirectX or nothing ![]() |
|||
|
#2
|
|||
|
|||
|
The "DOS console available in Windows XP" is not DOS, which is likely why you've been told to abandon this effort in favor of other APIs.
|
|
#3
|
|||
|
|||
|
Thanks for the quick reply!
I guess that means this is a no-go, no way around it idea? I'll have to bin that recently acquired Abrash book then! Thanks for your help, I'll be back soon cos I've got a scheduling problem to ask about (no, I'm not a CS major asking about homework!) Lefunkster |
|
#4
|
||||
|
||||
|
Quote:
How were you doing it before? Was it a Microsoft compiler or another one, like Borland? Unless VC++6 removed the "DOS" graphics functions, you should still use it. I don't have VC++6 install. Just because Quote:
__________________
The 3 Laws of the Procrastination Society: 1) Never do today that which can be put off until tomorrow 2) Tomorrow never comes |
|
#5
|
|||
|
|||
|
Hello, again!
If my memory serves me it was a Microsoft C compiler but I can't remember which... Very small snippit of code: #include <dos.h> #include <conio.h> // Global Variables int OldMode; // Function Declarations void OpenGraph(); void CloseGraph(); // Main Program void main() { OpenGraph(); // open graphics mode 0x13 getch(); // wait for a keypress CloseGraph(); // back to user's original mode } Anyway of getting this to compile and work?! |
|
#6
|
||||
|
||||
|
Find out what the functions aren't defined in your current compiler. Then either
1) find out if the functions still exist in the documentation and how to use them 2) find out if those functions have been replaced with new functions and modify the code 3) write your own versions of the functions that no longer exist 4) search for replacement functions in packages off the web that will work with your new compiler That's about it... __________________
The 3 Laws of the Procrastination Society: 1) Never do today that which can be put off until tomorrow 2) Tomorrow never comes |
Recent GIDBlog
Problems with the Navy (Officers) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Missing system32\drivers\ntfs.sys | Impulse | Computer Hardware Forum | 149 | 08-Jan-2009 08:15 |
| Command & Conquer 95 under XP | dexter | Computer Software Forum - Games | 42 | 20-Sep-2008 13:30 |
| Apache on Windows XP with Zone Alarm | JdS | Computer Software Forum - Windows | 4 | 28-Aug-2005 08:28 |
| Trouble with Windows XP | vsseym | Computer Software Forum - Windows | 29 | 12-Aug-2004 03:56 |
| Scan your Windows XP for Security Holes | JdS | Computer Software Forum - Windows | 1 | 03-Feb-2002 12:46 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The