mousehandler

2012-10-27 Thread hr
hi, could anyone please explain how an array of Handlers is defined? void Handler(int, int); struct WData { POINTS mouse; // Current location of the mouse Queue clicks[WM_MOUSELAST - WM_MOUSEFIRST + 1]; // Array to hold the coordinates of the clicks int mous

Re: mousehandler

2012-10-27 Thread Tobias Pankrath
try: Handler[] mouse_handlers = new [WM_MOUSELAST - WM_MOUSEFIRST + 1] or if the size is statically known: Handler[WM_MOUSELAST - WM_MOUSEFIRST + 1] handler;

Re: mousehandler

2012-10-27 Thread hr
On Saturday, 27 October 2012 at 11:59:16 UTC, Tobias Pankrath wrote: try: Handler[] mouse_handlers = new [WM_MOUSELAST - WM_MOUSEFIRST + 1] or if the size is statically known: Handler[WM_MOUSELAST - WM_MOUSEFIRST + 1] handler; Thank you for your help. after doing what you propose, i get the

Re: mousehandler

2012-10-27 Thread Tobias Pankrath
On Saturday, 27 October 2012 at 14:05:20 UTC, hr wrote: On Saturday, 27 October 2012 at 11:59:16 UTC, Tobias Pankrath wrote: try: Handler[] mouse_handlers = new [WM_MOUSELAST - WM_MOUSEFIRST + 1] or if the size is statically known: Handler[WM_MOUSELAST - WM_MOUSEFIRST + 1] handler; Thank you