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");

Vibe.d MongoDB database connection

2022-12-25 Thread eXodiquas via Digitalmars-d-learn
Hello everyone, I tried to fix this problem myself but I just can't get it to work and you guys were great help for me on the last problems I encountered, so I give it a shot again. :P I worked through the "D Web Development" book by Kai Nacke and I tried to setup a MongoDB connection for

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

Re: Confusion about `Random`

2022-12-25 Thread Siarhei Siamashka via Digitalmars-d-learn
On Saturday, 24 December 2022 at 17:55:11 UTC, jwatson-CO-edu wrote: On Saturday, 24 December 2022 at 16:42:36 UTC, Siarhei Siamashka wrote: Sounds like a case of https://xkcd.com/221/ BTW, you don't need to explicitly initialize unpredictableSeed, Another thing is that the current