Compartir a través de


AtlTraceErrorRecords

Dumps OLE DB Error Record information to the dump device if an error is returned.

inline void AtlTraceErrorRecords( 
   HRESULT hrErr = S_OK  
);

Parameters

  • hErr
    [in] An HRESULT returned by an OLE DB Consumer Template member function.

Remarks

If hErr is not S_OK, AtlTraceErrorRecords dumps OLE DB Error Record information to the dump device (the Debug tab of the Output window or a file). The Error Record information, which is obtained from the provider, includes row number, source, description, help file, context, and GUID for each error record entry. AtlTraceErrorRecords dumps this information only in debug builds. In release builds, it is an empty stub that is optimized out.

Requirements

Header: atldbcli.h

See Also

Reference

CDBErrorInfo Class

Other Resources

Macros and Global Functions for OLE DB Consumer Templates