El Tuesday, April 18, 2023 a la(s) 7:33:16 PM UTC-3, Phil McGuinness escribió:
Sebastion
The reason I put the ? "hello world" before the SetConsoleTitle() is it calls __InitConsole() for you.
You can read the source code in the SDK
Phil
Thank you both!
The __InitConsole() line fixed the problem. You learn something new every day!
As I couldn't get it to work I had created a Console App (instead of Terminal App) and with the Console object and the Title assignment I was able to achieve what I needed.
Regards.
Sebastián
Thanks Phil, your code worked too, in the end I used __InitConsole() for readability.
Sebastián
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)