How to change screen mode in VC++

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
keyboard_ninja

How to change screen mode in VC++

Post by keyboard_ninja »

I'm trying to change to mode 12h in VC++
this code doesn't work:

__asm
{
mov ax, 12
int 10h
}
How can i fix this ?
I know this isn't a vc++ forum but help me if you can
Guest

RE:How to change screen mode in VC++

Post by Guest »

>On 2002-05-07 01:19:39, keyboard_ninja wrote:
>I'm trying to change to mode 12h in VC++

It's impossible to do this from VC++. Visual C++ outputs 32-bit
code for Windows.

>this code doesn't work:
>
>__asm
>{
>mov ax, 12
>int 10h
>}
>How can i fix this ?
>I know this isn't a vc++ forum but help me if you can

Read any text on protected mode and you will understand why you
cannot call BIOS interrupts from a protected-mode OS such as
Windows.
The Legend

RE:How to change screen mode in VC++

Post by The Legend »

>On 2002-05-07 08:20:15, Anonymous wrote:
>>On 2002-05-07 01:19:39, keyboard_ninja wrote:
>>I'm trying to change to mode 12h in VC++
>
>It's impossible to do this from VC++. Visual C++ outputs 32-bit
>code for Windows.
Take a look at DirectX then. http://www.gamedev.net has a lot
of info about that.

>
>>this code doesn't work:
>>
>>__asm
>>{
>>mov ax, 12
>>int 10h
>>}
>>How can i fix this ?
>>I know this isn't a vc++ forum but help me if you can
>
>Read any text on protected mode and you will understand why you
>cannot call BIOS interrupts from a protected-mode OS such as
>Windows.
Well, why not write it directly here? BIOS code is
real mode code. :-)
Post Reply