How to make Create Window Work?

Adam D. Ruppe destructionator at gmail.com
Wed Dec 9 17:32:57 UTC 2020


On Wednesday, 9 December 2020 at 17:25:10 UTC, Ruby The Roobster 
wrote:
>              CreateWindow("BUTTON".toUTF16z,      // window 
> class name

fyi for a string literal like this you can just do

"BUTTON"w.ptr // note the w

> This gives an error saying: Cannot pas argument of type 'int' 
> to argument of type 'void*'. How is this fixed?

Use lowercase `null` instead.


More information about the Digitalmars-d-learn mailing list