#define REAL double unsigned char add_constraintex(lprec *lp, int count, REAL *row, int *colno, int constr_type, REAL rh);The proble seems to be with the definition of : REAL *row, int *colno, for which the documentation says they should be 0 based arrays of reals and integers respectivly. I used the following definition in Fox :
DECLARE INTEGER "add_constraintex" IN "lpsolve55.dll" LONG lp, LONG count, DOUBLE row, LONG colno, INTEGER constr_type, DOUBLE rhand I called it with : add_constraintex(lp, j, @RROW, @colno, LE, 15000), where rrow and colno are arrays of numbers, without success.