Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass an array of reals to a 3d party dll
Message
De
27/01/2006 17:01:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Pass an array of reals to a 3d party dll
Divers
Thread ID:
01091099
Message ID:
01091099
Vues:
70
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform