Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type Array needed for communiction with dll
Message
De
17/02/2003 09:02:57
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Type Array needed for communiction with dll
Divers
Thread ID:
00754055
Message ID:
00754055
Vues:
50
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
Fil
Voir

Click here to load this message in the networking platform