Visual D 0.3.43 beta1 available
johann via Digitalmars-d-ide
digitalmars-d-ide at puremagic.com
Fri Nov 6 05:46:49 PST 2015
On Friday, 6 November 2015 at 13:08:51 UTC, Rainer Schuetze wrote:
>
>
> On 06.11.2015 08:45, johann wrote:
>>[...]
>
> The VC runtime libraries expect a WinMain entry point if you
> compile for subsystem windows, so you should replace main()
> with WinMain:
>
> import core.runtime;
> import core.sys.windows.windows;
>
> extern (Windows)
> int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
> lpCmdLine, int nCmdShow)
> {
> Runtime.initialize();
>
> Form myForm;
> ...
> Runtime.terminate();
> return 0;
> }
>
> AFAICT this was different in earlier versions of the VC
> runtime. I'm not sure if the D runtime can/should try to
> redirect this to main().
thanks - i tried that and it doesn't work. i am bust now.
More information about the Digitalmars-d-ide
mailing list