Mouse Program in Turbo Cpp

Mouse Interfacing In Turbo C++

Turbo C++ ... that takes me back. Here is what I am expecting is happening and why that delay() is needed.

What you have here is a polling loop. Without the delay(), you are going to flood your xx[] and yy[] buffers when button is 1, and probably overflow them too. Remember, the computer can execute that loop a great many times while you have that mouse button pressed. The delay() evens that out somewhat.

Turbo C MS-DOS BOX not responding to Mouse Click

The Solution is just 3 Steps:

Step 1 : Press Ctrl + Alt + F

Step 2 : Press Left Arrow (To move to the 3 Lines )

Step 3 : Press Enter on Repaint Desktop

You gotcha !



Related Topics



Leave a reply



Submit