https://msdn.microsoft.com/en-us/librar ... s.85).aspx
MSDN quote:
BOOL WINAPI FillConsoleOutputCharacter(
_In_ HANDLE hConsoleOutput,
_In_ TCHAR cCharacter,
_In_ DWORD nLength,
_In_ COORD dwWriteCoord,
_Out_ LPDWORD lpNumberOfCharsWritten
);
dwWriteCoord
A COORD structure that specifies the character coordinates of the first cell to which the character is to be written.
Code: Select all
Structure bufInfo
dwSize.coord
dwCursorPosition.coord
wAttributes.w
srWindow.small_rect
dwMaximumWindowSize.coord
EndStructure
buf.bufInfo
Structure crd
x.l
y.l
EndStructure
Global ary.crd
ary\x = 0
ary\y = 0
OpenConsole()
size = 25*80
dwI = 0
hI.l = GetStdHandle_(#STD_OUTPUT_HANDLE);
GetConsoleScreenBufferInfo_(hI, @buf)
;** Here it is. If u run this code nothing will actually happen with FillConsoleOutputCharacter.
FillConsoleOutputCharacter_(hI, Asc("a"), size, ary, @dwi)
;** But if you replace it to
;FillConsoleOutputCharacter_(hI, Asc("a"), size, 0, @dwi)
;It will work. It will fill console with 'a' character starting from 0, 0 coord cell.
;If you change 0 to 5 it gonna start from 5 cell in a first row and so on untill 80
Input()and i tried to use PBs "coord" too. Same result -> nothing on screen.
Doing this for experence and i just wonder why it wont work.
Can anyone explain me why this happens and how to fix this, but Not replace function using other ways?



