Re: Deprecation of toUTF16

2017-08-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/31/17 12:12 PM, Andre Pany wrote: Hi, I have some problems to find out what to use instead of the deprecated toUTF16 function. I am calling a shared library written in Delphi. While this coding is working fine (with german ü) import std.utf: toUTF16; wstring ws = toUTF16(s); BSTR bStr =

Re: Deprecation of toUTF16

2017-08-31 Thread Andre Pany via Digitalmars-d-learn
On Thursday, 31 August 2017 at 17:22:51 UTC, Kagamin wrote: import std.conv; auto ws=s.to!wstring; Thank you! Kind regards André

Re: Deprecation of toUTF16

2017-08-31 Thread Kagamin via Digitalmars-d-learn
import std.conv; auto ws=s.to!wstring;

Deprecation of toUTF16

2017-08-31 Thread Andre Pany via Digitalmars-d-learn
Hi, I have some problems to find out what to use instead of the deprecated toUTF16 function. I am calling a shared library written in Delphi. While this coding is working fine (with german ü) import std.utf: toUTF16; wstring ws = toUTF16(s); BSTR bStr = SysAllocStringLen(ws.ptr, cast(UINT) ws