Thanx for the suggestion Brett.
I m using TC as I m working on a project having interaction with
an external hardware using functions like inportb(), outportb() etc.
I dont know much ant the Microsoft C Compiler. does it have the
external hardware interaction capability? If it does then it will surely
be easier for me.
By the way I somehow managed to solve that problem with the help
of a fren like u. I did it by calling another function restrictmouseptr()
defined as,
void restrictmouseptr(int x1, int y1, int x2, int y2)
{
in.x.ax=7;
in.x.cx=x1;
in.x.dx=x2;
int86(0x33,&in,&out);
in.x.ax=8;
in.x.cx=y1;
in.x.dx=y2;
int86(0x33,&in,&out);
}
Anyways thnx again for ur response.
Sudhanshu Gupta
Click to join rdiasmca2006
---------------------------------
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
[Non-text portions of this message have been removed]