General information
Category:
Coding, syntax & commands
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only