Passing a variable by reference using SetTimerEx
#6

Public functions that have arguments which are passed by reference expect a variable (or array) as input, not a number.

If you do

Код:
decrease(5);
the compiler will give you an error:

Quote:

error 035: argument type mismatch (argument 1)

And that's basically what SetTimerEx does - the timer does NOT pass the "TEST" variable like you expected it to do, it attempts to pass its value (5) which does not work.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)