Converting literal strings to pointers

John Kiro johnkirollos at yahoo.com
Mon Jan 8 12:34:25 PST 2007


== Quote from Thomas Kuehne (thomas-dloop at kuehne.cn)'s article
> -----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-----



Thanks Thomas ;-)


John


More information about the Digitalmars-d-learn mailing list