Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass an array of reals to a 3d party dll
Message
From
27/01/2006 17:01:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Pass an array of reals to a 3d party dll
Miscellaneous
Thread ID:
01091099
Message ID:
01091099
Views:
71
I am trying to call a 3d party dll which requires that an array of Reals and an array of integers should be passed. The definition is as follows :
#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 rh
and I called it with : add_constraintex(lp, j, @RROW, @colno, LE, 15000), where rrow and colno are arrays of numbers, without success.

I would appreciate any suggestions

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform