共用方式為


IDiaDataSource::get_lastError

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Retrieves the file name for the last load error.

Syntax

HRESULT get_lastError (  
   BSTR* pRetVal  
);  

Parameters

pRetVal
[out] Returns a string that contains the .pdb file name associated with the last load error.

Return Value

Returns the last error code caused by a load operation. Returns E_INVALIDARG if the pRetVal parameter is NULL.

Example

BSTR    fileName;  
HRESULT errorCode = pSource->get_lastError( &fileName );  

See Also

IDiaDataSource