This table is not a divine revelation, but my personal reference book.
Windows support non-Unicode function like SomeFunctionExA and SomeFunctionExW for Unicode.When a call is to non-Unicode function, Windows will pass the call to Unicode, process and then give the result as ANSI, where makes it slower and demands processing overload.
| Ansi-fy | Wide Char, Unicode | Units | |
const
C = '...'; |
const
C: AnsiString = '...'; |
||
| CompareText | AnsiCompareText | CompareText | SysUtils; AnsiStrings. Case insensitive, ignoring accents characters. |
| CompareStr | AnsiCompareStr | CompareStr | SysUtils; AnsiStrings |
| FindWindow | FindWindowA | FindWindowW (in Delphi Versions >= 2009 the same as FindWindowW) |
|
| GetDiskFreeSpace | GetDiskFreeSpaceA | GetDiskFreeSpace (in Delphi Versions >= 2009 calls GetDiskFreeSpaceW) |
Windows |
| GetTempPath | GetTempPathA | GetTempPath (in Delphi Versions >= 2009 calls GetTempPathW) |
Windows |
| LowerCase | AnsiLowerCase | LowerCase | SysUtils or AnsiStrings (Delphi 2009+) |
| SameText | AnsiSameText | SameText calls AnsiCompareText. Case insensitive | |
| ShellExecute | ShellExecuteA | ShellExecuteW (in Delphi Versions >= 2009 the same as ShellExecute) |
ShellApi |
| ShellExecute | ShellExecuteA | ShellExecuteW (in Delphi Versions >= 2009 the same as ShellExecute) |
ShellApi |
| ShellExecuteInfo | ShellExecuteInfoA | ShellExecuteInfoW (in Delphi Versions >= 2009 the same as ShellExecuteInfo) |
|
| SHGetPathFromIDList | SHGetPathFromIDListA | SHGetPathFromIDList (in Delphi Versions >= 2009 calls SHGetPathFromIDListW) |
ShlObj |
| StrAlloc | AnsiStrAlloc | in Delphi Versions >= 2009 StrAlloc calls WideStrAlloc | SysUtils |
| UpperCase | AnsiUpperCase | UpperCase | SysUtils or AnsiStrings (Delphi 2009+) |
This article will not be complete, some text was removed intentionally. If you are unable to apply this, please contact for paid consultation.
Данная статья не будет полной, часть текста была удалена намеренно. Если вам не удалось применить, обращайтесь за платной консультацией.

No comments:
Post a Comment