On Sat 2008-02-09 06:55:11 UTC-0000, myfriend_shankar ([EMAIL PROTECTED]) wrote:

> pls give the definitions to set mouse ptr in c

There are different ways to set the mouse pointer in C, depending on
which operating system you're using.  In MS-DOS, once a mouse driver
was loaded, you would set certain 80x86 registers then call interrupt
33h.  On most DOS compilers you could do this from within your C code
by writing inline assembly code.

Under Windows, and other operating systems, the situation is
different.  Instead of talking directly to the hardware, or calling
interrupts, Microsoft provides an API [1] for communicating with all
the hardware on the PC, including the mouse.

You can read about how to set the mouse pointer style in Microsoft
Windows on MSDN [2].  Their examples are written in C.

[1] http://en.wikipedia.org/wiki/Windows_API
[2] http://msdn2.microsoft.com/en-us/library/ms648380(VS.85).aspx

Reply via email to