You should move MouseHookProc
definition outside of main
. C++ does not allow function definitions inside of other functions.
Among other things, (LPTHREAD_START_ROUTINE)clicker
is also wrong, there is no need to perform cast here, instead clicker
function must have correct signature, void down();
is actually a function declaration, not invocation.
2
solved expected a “;” on strange place