As i am new to use mouse interface in c.

Please tell me how can we check mouse is connected or not.

How can we get co-ordinate from computer screen when we clicked it.

i just want that how can we store co-ordinate of screen in variable when we clicked on the screen.

Please reply as soon as possible.

8 Years
Discussion Span
Last Post by Stefano Mtangoo

Well you had better use a different compiler becuse you can't access win32 api mouse functions from that 16-bit compiler. MS-Windows != MS-DOS.

Edited by Ancient Dragon: n/a


I would rather suggest you apply layer of abstraction for sake of simplicity and may be future Xplatform, if it is not a homework. Jump yourself into wxWidgets,GTKmm, or QT
They really simplify things and abstract you from dirty calls to OS directly.

I hate LPVOID and some other ugly Win32 stuffs :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.