Am Tue, 20 Sep 2011 19:27:03 +0200 schrieb Trass3r: >> 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[].
I am not familiar with pointers. I know I have to call toUTFz! and fill pointer value and length value of the WinAPI from the result. Do you have any suggestions how to achieve this API call? Kind regards Andre