How to make Create Window Work?

Ruby The Roobster michaeleverestc79 at gmail.com
Wed Dec 9 18:01:29 UTC 2020


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.


More information about the Digitalmars-d-learn mailing list