toUTFz and WinAPI GetTextExtentPoint32W

Andre andre at s-e-a-p.de
Tue Sep 20 10:16:19 PDT 2011


Hi,

I want something like:

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

I get the wchar[] stuff not working. I am struggling
with pointer to array. Could you give some advice?

Kind regards
Andre


More information about the Digitalmars-d-learn mailing list