long ZCslCall( /* call function */
ZCslHandle aHandle, /* CSL handle */
const char *aFileName, /* file/module caller belongs to */
const char *aFuncName, /* function name */
long aArgCount, /* # of arguments following */
char *aParam[] /* parameter list. NULL if no args */
);
Calls any CSL, C or C++ function known to CSL. Parameters are passed
as a list of ASCIZ strings.
Example:
static char *args[] = { "The quick brow fox", "5", "10" };
long errs, size;
char buf[40];
/* call strSubString */
errs = ZCslCall(csl, "MyProg.exe", "strSubString", sizeof(args)/sizeof(char*), args);
if (errs) .... /* error handling */
/* retrieve result */
size = sizeof(buf);
errs = ZCslGetResult(csl, buf, &size);
if (errs) .... /* error handling */
|