
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