Re: [Win32 API] MessageBox Example without MSVCR120.dll dependency

2022-12-25 Thread RTM via Digitalmars-d-learn
On Sunday, 25 December 2022 at 18:30:12 UTC, BoQsc wrote: This is a working Hello World example without dependency on Microsoft C Runtime Library, I couldn't find anything by searching around the forums or search engines, so I'm posting it here. Please provide improvements if you feel like

Re: [Win32 API] MessageBox Example without MSVCR120.dll dependency

2022-12-25 Thread novice2 via Digitalmars-d-learn
to avoid special compile command just add one code line: pragma(lib, "user32.lib");

Re: [Win32 API] MessageBox Example without MSVCR120.dll dependency

2022-12-25 Thread Adam D Ruppe via Digitalmars-d-learn
On Sunday, 25 December 2022 at 18:30:12 UTC, BoQsc wrote: This is a working Hello World example without dependency on Microsoft C Runtime Library you might also consider using `-m32omf` switch to dmd which will make it bundle the old digital mars c lib. this is generally worse but since it

[Win32 API] MessageBox Example without MSVCR120.dll dependency

2022-12-25 Thread BoQsc via Digitalmars-d-learn
This is a working Hello World example without dependency on Microsoft C Runtime Library, I couldn't find anything by searching around the forums or search engines, so I'm posting it here. Please provide improvements if you feel like something is missing or incorrect. **How to Compile:** `dmd