|
<< Click to Display Table of Contents >> C Examples: DbiAnsiToNative |
![]() ![]()
|
Translate the ANSI string into the specified tables's language driver native character set.
This example uses the following input:
fDbiAnsiToNative(hPXCur, Buffer, ANSIStr);
DBIResult fDbiAnsiToNative(hDBICur hTmpCur, pCHAR OemStr, pCHAR AnsiStr)
{
DBIResult rslt;
pVOID LD;
BOOL Loss;
rslt = Chk(DbiGetLdObj(hTmpCur, &LD));
if (rslt != DBIERR_NONE)
return rslt;
rslt = Chk(DbiAnsiToNative(LD, OemStr, AnsiStr, 0, &Loss));
if (rslt != DBIERR_NONE)
return rslt;
if (Loss == TRUE)
return DBIERR_INVALIDLANGDRV;
return rslt;
}