Most of the iSeries™ Access for Windows® C/C++ APIs that accept string parameters exist in three forms: OEM, ANSI, or Unicode.
The generic version of the iSeries Access for Windows C/C++ APIs follows the same form as the default OEM version. Only a single name for each function appears in this information, but there are three different system entry points. For example:
cwbNL_GetLang(); compiles to: cwbNL_GetLang(); //CWB_OEM or undefined or: cwbNL_GetLangA(); //CWB_ANSI defined or: cwbNL_GetLangW(); //CWB_UNICODE defined
API type | API name format (if it exists) | Pre-processor definition |
---|---|---|
OEM | cwbXX_xxx | None (may specify CWB_OEM explicitly) |
ANSI | cwbXX_xxxA | CWB_ANSI |
UNICODE | cwbXX_xxxW | CWB_UNICODE |
cwbDT_HexToString(); compiles to: cwbDT_HexToASCII(); //CWB_UNICODE not defined or: cwbDT_HexToWide(); //CWB_UNICODE definedSee the data transformation cwbdt.h header file for more details.