[fpc-pascal] How to write text to the console?

Reinier Olislagers reinierolislagers at gmail.com
Mon Jul 16 10:07:42 CEST 2012


On 16-7-2012 9:38, michael.vancanneyt at wisa.be wrote:
> On Mon, 16 Jul 2012, Reinier Olislagers wrote:
>> After having had help on the list I managed to write UTF8 text to the
>> Windows Vista console using 2.6
>> However, my test program (see attachment) fails on trunk.
<snip>
>> This works in FPC 2.7.1:
>> WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), at s[1],length(s),bw,nil);
>> ... but seems to be Windows-only.
> 
> Indeed.

Thanks Michael, I forgot: do you or does anybody know why the example
code I posted works in FPC 2.6.1 and doesn't work in FPC 2.7.1?



More information about the fpc-pascal mailing list