Have this code in an ASP which calls functions in a dll:

Code:
'Check for error values
If Err <> 0 Then
   Select Case Err.Number			
      Case (ERR_INVALID_USER_PASSWORD_SUPPLIED) 
:
:
:
End If
The problem is, that for some reason, the ASP is not picking up the Err.Number properly or something, as it ALWAYS uses the first Case in the Select block. I have reordered the Cases, and it always chooses the first one, despite the fact that the internals of the dll raise completely different errors.