D
danliyou
Unregistered / Unconfirmed
GUEST, unregistred user!
以下是VB中的程序:
Private Sub 身份认证_验证动态口令_Btn_Click()
On Error Resume Next
Dim ResponseID As String '响应码
Dim Identifier As String 'CTL标识
ResponseID = Text2.Text
Identifier = TextIdentifier.Text
'===================================================================================
ObjLogonAuth_S.Identifier = Identifier '指定CTL标识
'验证动态口令登录,证书和信任列表
ObjLogonAuth_S.Auth _
ResponseID, 3
If Err.Number <> 0 then
MsgBox "动态口令验证失败!Error = " &
Hex(Err), vbCritical, "失败"
Exit Sub
else
MsgBox "动态口令验证成功!", vbInformation, "成功"
End If
'===================================================================================
SpecInfoText.Text = ObjLogonAuth_S.SpecInfo
End Sub
现在我的问题是:如何在DElphi中取得错误码?
VB中的一段程序为:If Err.Number <> 0 then
MsgBox "动态口令验证失败!Error = " &
Hex(Err), vbCritical, "失败"
Private Sub 身份认证_验证动态口令_Btn_Click()
On Error Resume Next
Dim ResponseID As String '响应码
Dim Identifier As String 'CTL标识
ResponseID = Text2.Text
Identifier = TextIdentifier.Text
'===================================================================================
ObjLogonAuth_S.Identifier = Identifier '指定CTL标识
'验证动态口令登录,证书和信任列表
ObjLogonAuth_S.Auth _
ResponseID, 3
If Err.Number <> 0 then
MsgBox "动态口令验证失败!Error = " &
Hex(Err), vbCritical, "失败"
Exit Sub
else
MsgBox "动态口令验证成功!", vbInformation, "成功"
End If
'===================================================================================
SpecInfoText.Text = ObjLogonAuth_S.SpecInfo
End Sub
现在我的问题是:如何在DElphi中取得错误码?
VB中的一段程序为:If Err.Number <> 0 then
MsgBox "动态口令验证失败!Error = " &
Hex(Err), vbCritical, "失败"