Generic applications allow maximum portability because the same source code can be compiled for OEM, ANSI, and Unicode.
Generic applications are built by specifying different preprocessor definitions, and by using the generic version of the iSeries™ access for Windows® APIs (the ones without the "A" or "W" suffixes). Following is a short list of guidelines for writing a generic application:
#ifdef UNICODE #define _UNICODE #endif
For a complete description of these guidelines, see the following resources: