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 |
The domain assigns the error to a system component:
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.
If a system component provides a text description of an error, this is returned in the result string.