info on changing dos display modes (MCGA) and making a pointer to an existing address 
Author Message
 info on changing dos display modes (MCGA) and making a pointer to an existing address

hey..

like im a newbie to c++ and ive been trying to make a proggie to plot
pixels in MCGA mode..
i have been looking for ages for info on changing display modes and
plotting pixels
but all i can find is source for borland compilers (whereas i have vis
c++ 6)

i was wonderin if annyone knew anny good places with
tutorials/information on changing dos video modes
and if there was a header file included with Visual C++ that did it
either

as a side note
is it possible to make a pointer to a known memory address
ie- making a pointer to the 0xA000 address (start of vga memory) of
size unsigned char
(so it could be used with the memory.h function memset() )
and if so
what would the proper syntax be

thanx

--

Quote:
>>>Ether<<<


Quote:
>>>Corona Hi-Tech Search Engine<<<

http://www.*-*-*.com/ ~mdeburgh/


Wed, 28 Aug 2002 03:00:00 GMT  
 info on changing dos display modes (MCGA) and making a pointer to an existing address

Quote:
> as a side note
> is it possible to make a pointer to a known memory address
> ie- making a pointer to the 0xA000 address (start of vga memory) of
> size unsigned char (so it could be used with the memory.h
> function memset() ) and if so what would the proper syntax be

Language constructs don't matter much as the operating system will try to
stifle you if you try to touch the hardware (video memory) from a 32 bit
program (which is all VC/C++ generates) on a 32 bit o/s 9x, or NT.

A 16 bit program can still do it on 9x. NT will appear to allow some low
level shenanigans but onlty because its DOS emulator does the right thing.

In any event, if you really need this kind of access to the display you
might want to check out DirectX or OpenGL . This is not a good forum to
discuss those two topics, though.

Regards,
Will



Wed, 28 Aug 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. MCGA and Mode 13h

2. display Chinese words in DOS graphic mode.

3. How to change video mode to 800x600 with C for dos

4. How to change display mode in win3.11

5. Changing display mode

6. (AD) MIGRATION FROM C TO C++ MADE EASY!

7. how to make application that can run in win mode and dos mode too

8. info re: AutoCAD ADS programming

9. Displaying 8bit bitmaps in 8bit display mode

10. Switching between Ad-hoc & Infrastructure mode

11. link error after changing from debug mode to release mode

12. display specifiers and AD Extension

 

 
Powered by phpBB® Forum Software