Handling Errors

The DataView ActiveX automation interface provides extensive error handling. All functions return a long, which is non-zero where an error arises. Errors can be caused by the COM server, the operating system or the DataView automation interface itself. The return value is divided into an error domain and an error code.

Error domain Error code
XYYY ZZZZ


Error Domains

The domain assigns the error to a system component:

YYYY Domains
8000 General errors
8001 COM Interface function errors
8002 IDispatch Interface function errors
8003 Errors in deeper RPC layers within Windows
8004 Object data read/write errors
8007 Reserved for other Microsoft Interfaces
8008 System errors (WIN32 API)
87FF DataView automation interface errors


Error Codes

The code and domain of an error should be read together. The same error code may have completely different meanings in different domains. Moreover, interface errors are defined by the corresponding interface. Identical return values can therefore represent different errors. You should always refer to the interface specifications to interpret an error message.


Error Descriptions

If a system component provides a text description of an error, this is returned in the result string.


Error Codes and Descriptions in the DataView Automation Interface (Domain 7FF)

Error type Error domain Error code Error description
Syntax error 87FF 4600 Object failed to be created.
4700 Object information unavailable.
4100 Property not supported by object.
4200 Missing parenthesis
4300 Constants not found.
4400 Object not found
4500 Too many equals signs
Type error 87FF 81XX Constant type not supported.
8200 No object returned.
8300 Pass by reference not supported.
8400 Unknown parameter type.
8500 Parameter is not a number.
86XX Parameter type not supported.
8700 Unexpected return type.