Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Type Array needed for communiction with dll
Hi eyerybody !
In my application i have to communicate with an dll which handles the communiction to an SPS (Siemens SPS)
In Basic everything works good
declare funktion in (DLL)
( ByVal REF&,
( ByValNr&,
(ByVal Anzahl&,
(wert as INTEGER)
Dimension wert(0 ton 64)
res = funktion(REF,DBNr,Anzahl,wert(0))
the array fields of wert are filled with the correct values from the SPS
in foxpro (6.0) i tried it like this
declare LONG Funktion in (DLL) ,
LONG,
LONG,
LONG,
INTEGER @
DIMENSION wert(64)
store 0 to wert
res = Funktion(REF,DBNr,Anzahl,@wert)
now all 64 fields of my array wert are filled only with the first value from the SPS ???
if i do something like
res = Funktion(REF,DBNr,Anzahl,wert(1)) i receive an error
I don't know how to pass and receive an array to the function ??
Any help welcomed.
Best regards
Albert
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement