Re: How to force console

2018-08-02 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 2 August 2018 at 13:11:20 UTC, Everlast wrote: But, when I put this stuff in a static this in a windowsx64 dll, the static this is called about 100 times!!! Not once! try shared static this() instead of just static this() the latter is called once per thread, the former once

Re: How to force console

2018-08-02 Thread Everlast via Digitalmars-d-learn
On Thursday, 2 August 2018 at 13:02:21 UTC, Simen Kjærås wrote: On Thursday, 2 August 2018 at 12:08:50 UTC, Everlast wrote: On Thursday, 2 August 2018 at 03:20:30 UTC, Mike Parker wrote: On Wednesday, 1 August 2018 at 20:57:30 UTC, Everlast wrote: I can create a console for a dll using AllocCon

Re: How to force console

2018-08-02 Thread Simen Kjærås via Digitalmars-d-learn
On Thursday, 2 August 2018 at 12:08:50 UTC, Everlast wrote: On Thursday, 2 August 2018 at 03:20:30 UTC, Mike Parker wrote: On Wednesday, 1 August 2018 at 20:57:30 UTC, Everlast wrote: I can create a console for a dll using AllocConsole and special Write functions but this is a pain. How do I ge

Re: How to force console

2018-08-02 Thread Everlast via Digitalmars-d-learn
On Thursday, 2 August 2018 at 03:20:30 UTC, Mike Parker wrote: On Wednesday, 1 August 2018 at 20:57:30 UTC, Everlast wrote: I can create a console for a dll using AllocConsole and special Write functions but this is a pain. How do I get all standard input and output to either use this console o

Re: How to force console

2018-08-01 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 1 August 2018 at 20:57:30 UTC, Everlast wrote: I can create a console for a dll using AllocConsole and special Write functions but this is a pain. How do I get all standard input and output to either use this console or for the app to create the console automatically? The proble