Dbi GetError Context eContext szContext

eConteXt I NT I 6 The context type.

Appendix A—BDE API Quick Reference ■ 321

szContext

PChar

Pointer to the variable that will the context string.

RETURNS: DBIResult

DbiGetErrorContext gives the application the ability to get more information regarding a BDE error. The DBIResult is translated to its string equivalent and passed as a parameter to this function. The function returns specific extended information with regard to the error string passed.

DbiGetErrorEntry ( uEntry; pulNativeError, szError )

uEntry pulNativeError szError

UINTI 6 pUINT32

PChar

The error stack entry.

Pointer to the variable that will receive the native error code.

Pointer to the variable that will receive the error string.

RETURNS: DBIResult

The function DbiGetErrorEntry retrieves the error description of the specified entry on the error stack.

DbiGetErrorlnfo ( bFull, pErrlnfo )

bFull pErrlnfo

Boolean pDBIErrlrifo

Not currently used.

Pointer to a structure of type DBIErrlnfo

RETURNS: DBIResult retrieves descriptive information about the last error that occurred. It also provides error contexts for the first four error messages on the error entry stack.

DbiGetErrorString ( rslt, szError)

rslt szError

DBIResult PChar

BDE error code.

The variable that will receive the error message string.

RETURNS: DBIResult

DbiGetErrorString retrieves the descriptive error message related to the DBIResult code provided.

Not currently used.

Pointer to a structure of type DBIErrlnfo

Part HI—The Well-Rounded Application

Was this article helpful?

0 0

Post a comment