Correct on UDTs, Steve...
Example
POINTAPI is a UDT. Put BYVAL in there and it won't compile.
TYPE POINTAPI
X_Pos AS LONG
Y_Pos AS LONG
END TYPE
I haven't had any experience with arrays though. Now I've successfully accomplished defining the variables as LONG, instead of passing them as _OFFSET, so I needsome more clarification from Spriggsy I guess.
Pete
Example
Code: (Select All)
FUNCTION GetCursorPos (lpPoint AS POINTAPI)
POINTAPI is a UDT. Put BYVAL in there and it won't compile.
TYPE POINTAPI
X_Pos AS LONG
Y_Pos AS LONG
END TYPE
I haven't had any experience with arrays though. Now I've successfully accomplished defining the variables as LONG, instead of passing them as _OFFSET, so I needsome more clarification from Spriggsy I guess.
Pete