Page 1 of 1

Can be passed structured arrays to a procedure DLL?

Posted: Sun Sep 03, 2006 11:04 am
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