How to make Create Window Work?
Ruby The Roobster
michaeleverestc79 at gmail.com
Wed Dec 9 17:37:16 UTC 2020
On Wednesday, 9 December 2020 at 17:32:57 UTC, Adam D. Ruppe
wrote:
> 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.
It's not the 'NULL' that's the error. It doesn't compile because
of the '0'
. That is what I need to fix, since I want to make a WM_COMMAND
for that button.
More information about the Digitalmars-d-learn
mailing list