Delphi中声明
function exportfile(AHandle: THandle;p_id:pchar;p_dir:pchar;p_user:pchar):pchar;
Vb中声明
Private Declare Function exportfile Lib "wdata" (ByVal AHandle As Long, ByVal p_id As String, ByVal p_dir As String, ByVal p_user As String) As String
调用代码
    If exportfile(SJCL_XZ.hwnd, sFileID, sDZ_Server, sZDRID) = "1" Then
    End If
执行时错误提示
实时错误'5'
无效的过程调用或参数