WinAPI Unicode and ANSI functions
问题 Most of WinAPI calls have Unicode and ANSI function call For examble: function MessageBoxA(hWnd: HWND; lpText, lpCaption: LPCSTR; uType: UINT): Integer; stdcall;external user32; function MessageBoxW(hWnd: HWND; lpText, lpCaption: LPCWSTR; uType: UINT): Integer; stdcall; external user32; When should i use the ANSI function rather than calling the Unicode function ? 回答1: The simplest rule to follow is this. Only use the ANSI variants on systems that do not have the Unicode variant. That is on