adsense


Showing posts with label C LANGUAGE PROGRAM TO DISPLAY MOUSE POINTER IN TEXT-MODE. Show all posts
Showing posts with label C LANGUAGE PROGRAM TO DISPLAY MOUSE POINTER IN TEXT-MODE. Show all posts

Sunday, 15 November 2015

C LANGUAGE PROGRAM TO DISPLAY MOUSE POINTER IN TEXT-MODE PAGE 69








COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button


C LANGUAGE PROGRAM TO DISPLAY MOUSE POINTER IN TEXT-MODE






C Program to display mouse pointer in textmode

/* Program to display mouse-pointer in text-mode */

#include<dos.h>

#include<conio.h>
 
int initmouse();
void showmouseptr();
 
union REGS i, o;
 
main()
{
   int status;
 
   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);
}