console buffer size
Posted: Mon Feb 06, 2006 11:04 pm
I try to change a console buffer (read: the max width of text, indipendent from the window size)
but I get error 87 (invalid parameter).
Anybody can see why?
Code: Select all
OpenConsole() : stdout.l=GetStdHandle_(#STD_OUTPUT_HANDLE)
sz.COORD : sz\x=120 : sz\y=200
;sbi.console_screen_buffer_info : getconsolescreenbufferinfo_(stdout,sbi)
ok=setconsolescreenbuffersize_(stdout,@sz)
PrintN( Str(ok) )
PrintN( Str( getlasterror_() ) )
Delay(3000)
Anybody can see why?