[DUG] Returning a WideString in an Invoke Param
Brian Wrigley
bswrigley at xtra.co.nz
Tue Jul 18 17:49:34 NZST 2006
----- Original Message -----
From: "Phil Middlemiss" <phil at tumonz.co.nz>
To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
> Params.rgvarg[1].bstrVal := PWideChar(layermanagerid);
> Params.rgvarg[0].bstrVal := PWideChar(appname);
Here you are casting, not converting. Don't you need to use
StringToWideChar?
Brian
More information about the Delphi
mailing list