Previous Topic: DBCStoPCNext Topic: DBCSEnd


DBCStoMF

Syntax
UINT DBCStoMF(HANDLE hDBCS, LPSTR sInBuffer, UINT nInBufferLen, LPSTR
	sOutBuffer, UINT nOutBufferLen, UINT fType, UINT * nLength)
Description

Converts the input buffer from ASCII to EBCDIC. The caller must allocate the output buffer and provide an output field for the converted length. The DBCS_PAD_SPACES option indicates whether the data is fixed or variable length. When True, the DLL should pad the converted data with spaces (in EBCDIC).

Arguments
hDBCS

Environment handle.

sBuffer

Input buffer

nBufferLen

Input buffer length

nInBufferLen

Input buffer length

sOutBuffer

Output buffer

nOutBufferLen

Output buffer length

fType

SQL data type:

  • DBCS_CHAR (includes VARCHAR)
  • DBCS_GRAPHIC (includes VARGRAPHIC)
nLength

Buffer for converted length

Returns