THIS DOESN'T WORK![]()
![]()
![]()
![]()
It's the simplest little thing, but it doesn't work! I have had problems earlier with this thing I was doing in C++. I found that it wasn't setting the video modes correctly. That's why I have this LITTLE piece of code.PHP Code:#include <dos.h>
#include <conio.h>
void setVESA(int mode)
{
union REGS i;
i.x.ax=0x4f02;
i.x.bx=mode;
int86(0x10, &i, &i);
}
int main(void)
{
setVESA(0x101);
getch();
return 0;
}
All this is supposed to do is change the video mode to 640x480x256color and then quit when the user presses a key. What it does, is absolutely nothing. You run it and it quits right away, without even setting the screen. It doesn't even flicker black. I've done it before, but I think it's my compiler that's messed up.
Using BorlandC version 3.1(16-bit)![]()




Reply With Quote