On Friday, 11 September 2015 at 04:30:44 UTC, Prudence wrote:
I'm using Visual D and I assume it takes care of all this. It
works so that's not a huge problem.
If it is taking care of the linker switch, then you gain nothing
but more complicated and fragile code by writing a WinMain!
I was
On Friday, 11 September 2015 at 04:30:44 UTC, Prudence wrote:
I'm simply creating my own version flags in VD properties. Not
the best way because I'll have to remember to set the flags
every time I use the library or I'll get errors about stuff
missing. I was hoping D had a flag to
On Thursday, 10 September 2015 at 18:06:43 UTC, Prudence wrote:
Is there a flag for knowing when a project is compiling for
windows(Uses WinMain) vs a console(normal main)?
You'd have to choose the main yourself anyway, so document what
process you use for that for people to use.
BTW it is
Is there a flag for knowing when a project is compiling for
windows(Uses WinMain) vs a console(normal main)?
version(Windows) is always valid for a console app, so it is
useless to disambiguate between a console app and a windows app.
(Say I have both a main and a winmain in my code, I need
On Thursday, 10 September 2015 at 18:10:43 UTC, Adam D. Ruppe
wrote:
BTW it is pretty rare that you should actually write a WinMain
in D. The right thing to do in most cases is to write a normal
main function. You can still get the windows gui subsystem with
a linker flag.
Specifically,
On Friday, 11 September 2015 at 01:36:31 UTC, Mike Parker wrote:
On Thursday, 10 September 2015 at 18:10:43 UTC, Adam D. Ruppe
wrote:
BTW it is pretty rare that you should actually write a WinMain
in D. The right thing to do in most cases is to write a normal
main function. You can still get