Indy & WinCE lazarus / 64-FPC development ---------------------------------------------------------------------- Hafedh TRIMECHE · 2016-03-17 20:57 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i function CompareString(Locale:LCID; dwCmpFlags:DWORD; lpString1:LPCWSTR; cchCount1:longint; lpString2:LPCWSTR;cchCount2:longint):longint; external KernelDLL name 'CompareStringW';is declared as Unicode but the Microsoft API declaration is an AnsiString one: https://msdn.microsoft.com/en-us/library/ms904713.aspx Link to Delphi forum: https://forums.embarcadero.com/thread.jspa?messageID=810680󅺸 ---------------------------------------------------------------------- marcov · 2016-03-18 10:21 The MSDN link defines it as a TCHAR, which is a type that is 8-bit (ansichar) when compiled as -A ansi api, and 16-bit as -W wide api.  And afaik wince is generally compiled in -W mode, but I know there are exceptions. But I can't see from that MSDN link alone what it should be.