C
Colin Hale
Hi,
I've got a legacy ATL component which throws errors using the ATL
Error() function.
I have always handled these errors in VB6 using on error goto, then in
the error handling code I could check err.number to see exactly what
sort of error it was throwing.
I now want to call this old ATL component from vb.net. Can I access
the err.number value from my catch code eg..
8<--snip----------------------------------------------------------
Try
objCardAuthorised = .ManualCaptureAuthorisationRequest(cardDetails
Catch ex As Exception
If Err.Number = (IRPSCOMM_WINSOCK_ERR) Then
strErrCode = "99999"
strErrMessage = IRPSCOMM_WINSOCK_DESC
Return False
End If
End Try
8<--snip----------------------------------------------------------
Am I flogging a dead horse here? Any learned advice appreciated.
Colin Hale
I've got a legacy ATL component which throws errors using the ATL
Error() function.
I have always handled these errors in VB6 using on error goto, then in
the error handling code I could check err.number to see exactly what
sort of error it was throwing.
I now want to call this old ATL component from vb.net. Can I access
the err.number value from my catch code eg..
8<--snip----------------------------------------------------------
Try
objCardAuthorised = .ManualCaptureAuthorisationRequest(cardDetails
Catch ex As Exception
If Err.Number = (IRPSCOMM_WINSOCK_ERR) Then
strErrCode = "99999"
strErrMessage = IRPSCOMM_WINSOCK_DESC
Return False
End If
End Try
8<--snip----------------------------------------------------------
Am I flogging a dead horse here? Any learned advice appreciated.
Colin Hale