Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type Array needed for communiction with dll
Message
From
17/02/2003 09:02:57
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Type Array needed for communiction with dll
Miscellaneous
Thread ID:
00754055
Message ID:
00754055
Views:
56
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
Map
View

Click here to load this message in the networking platform