Hello!

I'm playing with the console and tries to use the SetConsoleCursorPosition api, but it allways fails... Error-message (translation from Swedish): Wrong parameter

invoke SetConsoleCursorPosition,dwordConsoleOutputHandle,offset coordNULL

coordNULL is a COORD structure,dwordConsoleOutputHandle is a handle to the coonsole (and it's correct, I can write to the console...)
Posted on 2003-09-20 08:55:49 by onkelborg
Det ?r sj?lva koordinaterna som skall placeras p? stapeln och inte adressen...blah, i suck at this language :P
Posted on 2003-09-20 09:23:39 by Sephiroth3

Det ?r sj?lva koordinaterna som skall placeras p? stapeln och inte adressen...blah, i suck at this language :P


Hm... Can you explain it a bit? I didn't understans what to do... :/
Posted on 2003-09-20 09:31:23 by onkelborg
invoke SetConsoleCursorPosition,dwordConsoleOutputHandle,coordNULL
Posted on 2003-09-20 09:37:53 by Sephiroth3

invoke SetConsoleCursorPosition,dwordConsoleOutputHandle,coordNULL


Don't works:

looper.asm(18) : error A2114: INVOKE argument type mismatch : argument : 2
Posted on 2003-09-20 09:42:09 by onkelborg
Bah... skriva det p? vanligt s?tt da:
push dword ptr
push dword ptr
call SetConsoleCursorPosition
Posted on 2003-09-20 09:54:33 by Sephiroth3

Bah... skriva det p? vanligt s?tt da:
push dword ptr
push dword ptr
call SetConsoleCursorPosition


Thanks!

push dword ptr
push dword ptr dwordConsoleOutputHandle
call SetConsoleCursorPosition

was the solution... :)
Posted on 2003-09-20 09:59:02 by onkelborg