| description | Retrieves the file name for the last load error. | |
|---|---|---|
| title | IDiaDataSource::get_lastError | |
| ms.date | 07/22/2024 | |
| ms.topic | reference | |
| dev_langs |
|
|
| helpviewer_keywords |
|
|
| author | mikejo5000 | |
| ms.author | mikejo | |
| ms.subservice | debug-diagnostics |
Retrieves the file name for the last load error.
HRESULT get_lastError (
BSTR* pRetVal
);pRetVal
[out] Returns a string that contains the file name associated with the last error.
Returns the last error code caused by any previous operation. Returns E_INVALIDARG if the pRetVal parameter is NULL. Returns E_OUTOFMEMORY if there is insufficient resources to allocate a BSTR
BSTR fileName;
HRESULT errorCode = pSource->get_lastError( &fileName );