Windows Text Viewer in D

Kagamin spam at here.lot
Mon Apr 20 20:50:36 UTC 2026


On Monday, 13 April 2026 at 23:58:38 UTC, Paul wrote:
> On Thursday, 9 April 2026 at 09:33:24 UTC, Kagamin wrote:
>> try
>> ```d
>> import core.sys.windows.winuser;
>> pragma(lib, "user32");
>> int main()
>> {
>> 	MessageBoxW(null,"hello, world","test",0);
>> 	return 0;
>> }
>> ```
> This actually compiled and ran w/o errors.  Thank you.
>
> Could you show something simple and similar that would open a 
> window?

It's a console application. You should first compile it as a GUI 
subsystem application.


More information about the Digitalmars-d-learn mailing list