2011-08-25 36 views
0

我開始一個項目,該項目顯示了我在下面描述與行的錯誤工作:錯誤而在ASP應用程序中使用DLL

' VBScript 
Set lLogOn = Server.CreateObject("RuleEngine26.Transact") 
' They have a DLL named RuleEngine26.dll and are creating object out of it 
' They put functions like dbconnection inside of it 
' There is no source code for it, only the DLL is available 

' VBScript 
lprofile = lLogOn.PerformTxn(lChnlId, lAppId,"SignOn","",lUserId,lxmlrequest) 
' Here they are calling a function and it returns XML 
' The expected XML should contain 4 child nodes but I am getting none back 

如何解決這些問題?

+0

是否有文件?也許他們暴露某種錯誤機制,例如'lLogOn.GetLastError()'會讓你知道哪裏出了問題? –

回答

1

如果「它返回一個XML」你的意思是PerformTxn方法返回一個XML對象,如MSXML2 DOM文檔或元素,那麼你缺少一個Set聲明: -

Set lprofile = lLogOn.PerformTxn(lChnlId, lAppId,"SignOn","",lUserId,lxmlrequest) 
相關問題