Iasphelp::get_ErrorDscp method

The ErrorDscp property enables an ASP Web page to convert an error code to a descriptive string.

Syntax

HRESULT get_ErrorDscp(
  [in]  long lErrCode,
  [out] BSTR *pVal
);

Parameters

lErrCode [in]
Specifies the error code to be converted to a descriptive string.

pVal [out]
A caller-supplied pointer to a location that receives the descriptive string that corresponds to the error code in the lErrCode parameter.

Return value

Win32 error codes can also be returned.

Return code Description
S_OK The operation succeeded.
E_HANDLE The Iasphelp::Open method has not been called.
E_POINTER Invalid pVal pointer.
E_OUTOFMEMORY Out of memory.

VBScript Example

The Iasphelp::Open method must be called before the Iasphelp::ErrorDscp property can be queried.

Dim objPrinter, ErrorCode, ErrorString
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
...
' Get error code.
...
ErrorString = objPrinter.ErrorDscp(ErrorCode)

Requirements

Target platform: Desktop

See also

Iasphelp::Open