>Did you also try to remove the "@" from the actual call? According to the FoxPro help for the error message you listed, this error occurs during the call to the DLL, not the declaration.
Yes, I tried that, but it needs to be there to pass by reference. Like you said, the error occurs during the call to the DLL, but any problems in the DECLARE statement are not going to show up until that point in time.
Steve Gibson