Question:Write a c program which restricts the movement of pointer? 

Answer 
#include <dos.h>
#include <stdio.h>
void main()
{
union REGS i,o;
//show mouse pointer
i.x.ax=1;
int86(0x33,&i,&o);
//x coordinate restriction
i.x.ax=7;
i.x.cx=20;
i.x.dx=300;
int86(0x33,&i,&o);
//y coordinate restriction
i.x.ax=8;
i.x.cx=50;
i.x.dx=250;
int86(0x33,&i,&o);
getch();
}
 

+ Report
Total Preview: 896
Write a c program which restricts the movement of pointer?
Copyright © 2024. Powered by Intellect Software Ltd