VB写的DLL,VFP调用出现提示"申明DLL调用出现错误"

VB写的DLL,VFP调用出现提示"申明DLL调用出现异常"
测试了下,用VB写DLL(不需要注册的DLL),让VFP调用,发现涉及到字符处理的函数有问题.

以下是VB的函数定义
Public Function GetPathaa2(ByVal n As String) As String
    GetPathaa2 = n
End Function
Public Function GetPathaa(ByVal n As String) As String
    GetPathaa = n & "fuck"
End Function

VFP的调用

DECLARE string GetPathaa2 IN c:\Test.dll  string  && 运行OK
MESSAGEBOX(GetPathaa2("ABCD"))  && 运行OK


DECLARE string GetPathaa IN c:\Test.dll  string  && 运行OK
MESSAGEBOX(GetPathaa("ABCD"))  &&运行到这句就报错"申明DLL调用出现异常"

------解决方案--------------------
感觉不像是 vfp 的问题。