Code Conversion

3270 5250 VT
Yes Yes Yes

The Code Conversion function allows a client application to convert ASCII to EBCDIC or EBCDIC to ASCII. This function is only available to 32–bit applications.

Send the message as follows:
PostMessage (hServerWnd,
            WM_DDE_POKE,
            hClientWnd,
            PackDDEIParam (WM_DDE_POKE, hData, aCONV));
where:
hDATA
typedef struct tagWCDDE_CONV
{
    BYTE         ddepoke[(sizeof(DDEPOKE)-1)];
    char         szSourceName[256];   // name of memory-mapped file
    char         szTargetName[256];   // name of memory-mapped file
    BYTE         ConvType;            // Conversion method
    WORD         uSourceLength;       // Length of source buffer
    WORD         uTargetLength;       // Length of target buffer
}WCDDE_CONV;

typedef union tagDDE_CONV
{
     DDEPOKE     DDEpoke;
     WCDDE_CONV     DDEConv;
}DDE_CONV;

typedef DDE_CONV FAR *LPDDE_CONV;