Error Parameters

OLE DB Programmer's Reference

Error parameters are provider-specific values that are incorporated into error messages. For example, the provider might associate the error message "Cannot open table <param1>" with a dwMinor value of 10.

In the example, the error parameters would be used to supply the name of the table (<param1>) that could not be opened. Error parameters are inserted into error messages by a provider-specific error lookup service. Therefore, the format of error parameters and how they are substituted into error messages are completely provider-specific. The code in IErrorInfo calls the error lookup service. For more information, see "Error Lookup Services," later in this chapter.

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net