Can be passed structured arrays to a procedure DLL?

Just starting out? Need help? Post your questions and find answers here.
SP
User
User
Posts: 33
Joined: Wed Aug 16, 2006 2:32 pm
Location: BCN-SPAIN

Can be passed structured arrays to a procedure DLL?

Post by SP »

Hello!

The following code, passes the address of an array to a procedure, in which the values of their elements are modified. It functions well, but when I try to do the same thing, but putting the procedure in a DLL does
not function (invalid memory access).

It's possible to do this?
Thanks

Structure PLAYER
Name$
Age.l
EndStructure

Dim Team.PLAYER(16)

Procedure Process(T.PLAYER(1))
For i = 0 To 15
T(i)\Name$ = "Player" + Str(i)
T(i)\Age = 18 + i
Next
EndProcedure

Process(Team())
For i = 0 To 15
Debug Team(i)\Name$
Debug Team(i)\Age
Next