Link to home
Start Free TrialLog in
Avatar of crash020297
crash020297

asked on

changing video modes under WinNT

I am using Visual C++ 6.0 introdctory edition on a pentium2 300mhz under Windows NT workstation 4.0 service pack 3.
I would like to change my video mode from a console application to the resolution I desire (mode 13h).
My question is how do I do this? right now this is what I'm trying to do

void set_mode_vga()
{
_asm
    {
     mov ah, 0x00;
     mov al, 0x13;
     int 0x10;
}}

The error doesn't pop up at build time. When I run the program it gives me a message saying that 'the intruction "0x0040177c" referenced memory at "0xffffffff". The memory could not be "read"'.

If someone could help I'd really appreciate it
ASKER CERTIFIED SOLUTION
Avatar of AlexVirochovsky
AlexVirochovsky

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of crash020297
crash020297

ASKER

Thank you