GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 09-May-2005, 13:01
LeFunkster LeFunkster is offline
New Member
 
Join Date: May 2005
Posts: 6
LeFunkster is on a distinguished road

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  
Old 09-May-2005, 13:07
Dave Sinkula Dave Sinkula is offline
Member
 
Join Date: Apr 2005
Posts: 199
Dave Sinkula will become famous soon enough
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  
Old 09-May-2005, 13:39
LeFunkster LeFunkster is offline
New Member
 
Join Date: May 2005
Posts: 6
LeFunkster is on a distinguished road
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  
Old 10-May-2005, 19:40
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,373
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by LeFunkster
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

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:
Originally Posted by DaveS
The "DOS console available in Windows XP" is not DOS
does not mean DOS-style graphics don't work anymore. Even old TSR's still work in ""not-really-DOS" mode, as well as most graphics games I used to play. I've built some recently.
__________________

The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
  #5  
Old 13-May-2005, 14:13
LeFunkster LeFunkster is offline
New Member
 
Join Date: May 2005
Posts: 6
LeFunkster is on a distinguished road
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  
Old 14-May-2005, 00:01
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,373
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
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 GIDBlogProblems with the Navy (Officers) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 21:17.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.