Purpose
This function converts a string from EBCDIC to ASCII. The router must be loaded so that this routine can access the ASCII-to-EBCDIC translation table.
If the target string is not large enough to contain the translated string, the translation stops at the end of the target string. If the target string is larger than required, it is blank filled to the end of the string.
#include <WINDOWS.H>
#include "E32APPC.H"
extern unsigned int EHNDT_EBCDICToASCII(
HWND hWnd,
LPSTR lpsTarget,
LPSTR lpsSource,
unsigned int wSource,
LPWORD lpwTarget );Parameters
hWnd identifies the current window of the application.
lpsTarget points to the target (translated) string.
lpsSource points to the source (EBCDIC) string to convert.
wSource identifies the length of the source string in bytes.
lpwTarget points to a word variable containing the size of the target buffer. This variable will be updated with the total number of translated characters in the target buffer.