#include<graphics.h>
#include<conio.h>
#include<dos.h>

int initmouse();
void showmouseptr();

union REGS i, o;

main()
{
int status, gd = DETECT, gm;

initgraph(&gd,&gm,"C:\\TC\\BGI");

status = initmouse();

if ( status == 0 )
printf("Mouse support not available.\n");
else
showmouseptr();

getch();
return 0;
}

int initmouse()
{
i.x.ax = 0;
int86(0X33,&i,&o);
return ( o.x.ax );
}

void showmouseptr()
{
i.x.ax = 1;
int86(0X33,&i,&o);
}

i just can't execute this program as there is some problem with those header files...
pls help me with and its very urgency...

1
which compiler you are using??

Answers

2014-08-28T16:32:38+05:30
##c program to check if mouse support is available or not :

 

0