BYVAL required with pointers - Pointers may only be passed BYVAL. Add an explicit BYVAL to the Sub/Function declaration and prototype. Previous versions of PowerBASIC used an implied BYVAL.