Code:
P4 = VARPTR(M1Struct) CALL Hasp(50, 0, 0, PLa, PLb, P1, P2, P3, P4) <<-- P4 = Pointer to M1Struct
In the absence of a DECLARE or the procedure header for Hasp using a "BYVAL P4", the call line shown will pass the ADDRESS of P4, not the value.
Either try a declare, or use
Code:
CALL Hasp(50, 0, 0, PLa, PLb, P1, P2, P3, BYVAL P4) <<-- P4 = Pointer to M1Struct
Leave a comment: