flat assembler
Message board for the users of flat assembler.
Index
> Windows > FillConsoleOutputCharacter doesn't work with a COORD struct |
Author |
|
Picnic 27 Apr 2010, 23:19
hi vanzan, try this:
Code: invoke FillConsoleOutputCharacter,\ [hCSB],80,\ 80,DWORD[testt],Temp |
|||
27 Apr 2010, 23:19 |
|
vanzan 28 Apr 2010, 05:33
Thank you very, very much !
How can I know when I had to precise the type of data ? |
|||
28 Apr 2010, 05:33 |
|
revolution 28 Apr 2010, 05:55
vanzan wrote: How can I know when I had to precise the type of data ? Code: BOOL FillConsoleOutputCharacter( HANDLE hConsoleOutput, // handle to screen buffer TCHAR cCharacter, // character to write DWORD nLength, // number of character cells to write to COORD dwWriteCoord, // x- and y-coordinates of first cell LPDWORD lpNumberOfCharsWritten // pointer to number of cells written to ); |
|||
28 Apr 2010, 05:55 |
|
baldr 28 Apr 2010, 05:59
vanzan,
When structure is passed by value (i.e. argument type is not a pointer) as function argument, you have to copy it to stack entirely. |
|||
28 Apr 2010, 05:59 |
|
vanzan 29 Apr 2010, 10:30
Ok ! Thank You very much for the explanation
I think I've understood the principle =) PS: I'm creating an ASCII Arkanoid for my IT Shcool ASM project |
|||
29 Apr 2010, 10:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.