toUTFz and WinAPI GetTextExtentPoint32W

Trass3r un at known.com
Tue Sep 20 10:27:03 PDT 2011


> bool test(HDC dc, string str, int len, SIZE* s)
> {
> wchar[] wstr = toUTFz!(wchar*)str;
> GetTextExtentPoint32W(dc wstr.ptr, wstr.length, s);

toUTFz returns a wchar*, not a wchar[].


More information about the Digitalmars-d-learn mailing list