Converting literal strings to pointers

Thomas Kuehne thomas-dloop at kuehne.cn
Sun Jan 7 08:57:32 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Kiro schrieb am 2007-01-07:
> On the other hand, casting directly to void* does not work:
> SendMessage(hwndLBPrecision,LB_ADDSTRING,0,cast(int)cast(void*)"8 bit
> PCM");
>
> Error: "cannot convert string literal to void*"

SendMessage(hwndLBPrecision,LB_ADDSTRING,0,cast(int)cast(void*)"8 bit PCM".ptr);

Thomas

-----BEGIN PGP SIGNATURE-----

iD8DBQFFoTMqLK5blCcjpWoRAi9QAKCrKAg24XBgAmUqketUykihMlmDuwCghbSZ
0RyZAI6TWYdd5mtFLeEt0Uw=
=jKE1
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-learn mailing list