I am treading into new waters here, but I need to make some calls to procedures located in a .dll file. Following is the c syntax for the call:
int Process_record (
char *inputRec,
int *inputSize,
char *outputRec,
int *outputSize,
TSTError *STError )
the TSTError is defined as the following:
enum TTypeCode{erWindows,erInternal};
struct TSTError {
int STErrorCode,
TTypeCode STErrorType,
char STErrorMsg[255]
}PSTError;
So far I have the following:
PROCEDURE Process_record EXTERNAL "record.dll":
DEF RETURN PARAM vReturn AS INT.
DEF INPUT PARAM inputRec AS CHAR.
DEF INPUT PARAM inputSize AS INT.
DEF OUTPUT PARAM outputRec AS CHAR.
DEF OUTPUT PARAM outputSize AS INT.
DEF OUTPUT PARAM TSTError AS MEMPTR.
END PROCEDURE.
but this whole TTypeCode has me thrown for a loop. Any ideas where I need to go from here? Or does it look ok up to this point?
Thanks,
Mike
int Process_record (
char *inputRec,
int *inputSize,
char *outputRec,
int *outputSize,
TSTError *STError )
the TSTError is defined as the following:
enum TTypeCode{erWindows,erInternal};
struct TSTError {
int STErrorCode,
TTypeCode STErrorType,
char STErrorMsg[255]
}PSTError;
So far I have the following:
PROCEDURE Process_record EXTERNAL "record.dll":
DEF RETURN PARAM vReturn AS INT.
DEF INPUT PARAM inputRec AS CHAR.
DEF INPUT PARAM inputSize AS INT.
DEF OUTPUT PARAM outputRec AS CHAR.
DEF OUTPUT PARAM outputSize AS INT.
DEF OUTPUT PARAM TSTError AS MEMPTR.
END PROCEDURE.
but this whole TTypeCode has me thrown for a loop. Any ideas where I need to go from here? Or does it look ok up to this point?
Thanks,
Mike