Forum > FPC development

Indy & WinCE

(1/1)

Hafedh TRIMECHE:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---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&#810680

marcov:
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.

Navigation

[0] Message Index

Go to full version