I can't Hello World!

Rainer Schuetze via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Sun Mar 5 11:57:56 PST 2017



On 05.03.2017 01:44, Better World wrote:
> On Saturday, 4 March 2017 at 07:58:45 UTC, Rainer Schuetze wrote:
>> If you press Ctrl+F5, the program is run without debugger, but won't
>> close the console window unless you press a key.
>
> Thank you.
> I tried your advice but I see no console either way. I inserted a
> Thread.sleep() call and apparently it delays the program termination but
> doesn't allow me to see the console still. Inserting a call to readln()
> instead results in a bad descriptor exception.

I suspect you started from a Windows Application template. You should 
then switch the "Subsystem" to "Console" (on the "General" page of the 
project configuration settings).


More information about the Digitalmars-d-ide mailing list