The source files are provided in the c and cobol subdirectories of src within your Data Express installation directory, along with template sources to assist in the creation of new routines.
To create a C masking routine:
#define CHANGER_NAME "CHANGER" /* Apply changer's name here! */ |
/* Data processing example */ if ((pData->nType[i] == TYPE_STRING || pData->nType[i] == TYPE_INT_STR || pData->nType[i] == TYPE_CLOB) && strcmp(pTable[i].szChangerProgram, CHANGER_NAME) == 0) { pData->uData[i].szData = ProcessString(pData->uData[i].szData, &pTable[i]) ; } |
For your Windows makefile, copy the entry below and then replace UDCDEMO with the name of your masking routine:
UDCDEMO.obj: dxe_common.h $(COMMON_HEADERS) UDCDEMO.c !$(CPP) $(CFLAGS) $*.c |
For your UNIX makefile, copy the entry below and then replace UDCDEMO with the name of your masking routine:
UDCDEMO: libdecommon.a UDCDEMO.o $(CC) $@.o $(LDFLAGS) -o $@ |
On Windows platforms, build your C masking routine by invoking nmake from a Visual Studio command prompt. On UNIX platforms, build your C masking routine by invoking make.