Hi All, I am converting a C header for CDBFAPI and getting a little stuck,
I have converted the FILTERVAR struct but am confused about the defines
below it.
Also how best to declare this in a UDT
should it be ASCIIZ or STRPTR ?
Any help appreciated.
I have converted the FILTERVAR struct but am confused about the defines
below it.

Also how best to declare this in a UDT
should it be ASCIIZ or STRPTR ?
Code:
char *normal_case; and struct DBF* __stdcall OpenBase (char *filename); //open database DECLARE FUCNTION OpenBase(FileName as ASCIIZ) as DBF PTR ??
Code:
'struct FilterVar { ' char v[1024]; //result STRING ' char c[1024]; //temporary simple condition ' INT t[1024]; //offset's of |& ' INT vr; //offset IN result STRING ' char LEFT[1024]; //LEFT operand ' char RIGHT[1024]; //RIGHT operand ' }; TYPE FilterVar v AS STRING * 1024 c AS STRING * 1024 t(1024) AS LONG vr AS LONG sleft AS STRING * 1024 sright AS STRING * 1024 END TYPE #define flt_c d->filvar->c #define flt_v d->filvar->v #define flt_t d->filvar->t #define flt_vr d->filvar->vr #define flt_left d->filvar->LEFT #define flt_right d->filvar->RIGHT
Comment