-
DevC++ SVGA
I am using DeVC++ on win2k. I am playing around with the following code but it will not work, my guess is that win2k will not allow me to access vesa bios. Thanks in advance , Oh if this thread double post I'm sorry, do not know what happened the firest time:confused: :( :mad:
[code]
#include <iostream.h>
#include <stdlib.h>
void set_mode(void)
{
asm("movw $0x4f02, %ax");
asm("movw $0x0103, %bx");
asm("int $0x10");
}
int main(int argc, char *argv[])
{
cout <<"This is just a test" <<endl;
set_mode();
system("PAUSE");
return(0);
}
[\code]
-
Nope....welcome to a proper protected mode OS.....
You need to run in ring 0 to be able to access bios directly......
Best bet for graphics, spend some time learning OpenGL or DirectX