On Wednesday, 9 December 2020 at 17:57:49 UTC, Adam D. Ruppe wrote:

C will cast 0 to null implicitly, D will not. If there's ever a case where you need to pass a number as a handle (like some HBRUSHe among others), you then explicitly cast it like `cast(HANDLE) -1`. (HANDLE is an alias to void* too so that would also work)

Thank you. Now it works.

Reply via email to