หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Retrieves the file name for the last load error.
Syntax
HRESULT get_lastError (
BSTR* pRetVal
);
Parameters
pRetVal
[out] Returns a string that contains the file name associated with the last error.
Return Value
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
Example
BSTR fileName;
HRESULT errorCode = pSource->get_lastError( &fileName );