| |
tim_1003
Posts: 1
Score: 0
Joined: 3/2/2002
From:
Status: offline
|
I am having a problem passing strings from VB Script to an automation server. Here is the VBScript: Dim strUserPW Dim strUserName 'Holds the user name Dim obj Dim nValid 'Initalize the strUserName variable set strUserName = Request.Form("txtUserName") set strUserPW = Request.Form("txtUserPass") set obj = Server.CreateObject("PtreeCOM.CPtreeSrv.1") set nValid = obj.VerifyUser(strUserName, strUserPW) if nValid <> 0 then 'If the password is correct then set the session variable to True Session("blnIsUserGood") = True 'Close Objects before redirecting 'Redirect to the authorised user page and send the users name Response.Redirect"authorised_user_page.asp?name=" & strUserName End If Here is the interface declaration from the automation server: STDMETHOD(VerifyUser)(/*[in]*/ BSTR strCustNum, /*[in]*/ BSTR strPwd, /*[out, retval]*/ int* pVal); The VBScript isn't working... please help!
|
|