Most Windows API calls which accept strings are available in an ASCII or Wide versions, which differ as follows [1
|Windows Name||C data type||Command Suffix||Parameter Format||Preprocessor define|
|ANSI||char||A||Bytes in the system encoding (ex: cp1252)||_MBCS|
TCL Core edit
Windows 95/98/ME only had the ANSI interface. TCL 8.5.x still supports to compile on that theoretically but (as Jan said) nobody is trying that any more.
TCL 8.6.x requires the wide interface and thus internally mostly uses the wide methods.
Within the TCL API, there is some help for this issue. The type "TCHAR" is defined as a char when compiled for ANSI and wchar_t otherwise.
The api helper functions [
allow to convert from TCL internal encoding to Windows TCHAR. See the man page of [