Hello,
On 10/15/06, Borut Maricic <[EMAIL PROTECTED]> wrote:
* Discuss the possible future directions (including the
possibility of abandoning my approach altogether, of course,
if too complex/unnecessary) on the list
The last bug I found was wrong, but I found a new bug on your approach:
+ if Win32PlatformIsUnicodeUsed then
+ begin
+ tmpStr := CreatePWideCharFromPChar(Str, tmpCount);
+ Result := Windows.DrawTextW(DC, tmpStr, tmpCount, @Rect, Flags);
+ DisposePWideChar(tmpStr);
+ end else
+ begin
+ Result := Windows.DrawTextA(DC, Str, Count, @Rect, Flags);
+ end;
It doesn´t convert from utf-8 to ansi on the A part of the code and
doesn´t maintain the current code around ifdefs (we need that until
unicode is fully working).
I posted a new thread to create a uniform guideline for win32 unicode.
It would be great if you can contribute to the guidelines and help
implementing =)
--
Felipe Monteiro de Carvalho
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives