Hizkuntza
Oharra
Baimena behar duzu orria atzitzeko. Direktorioetan saioa has dezakezu edo haiek alda ditzakezu.
Baimena behar duzu orria atzitzeko. Direktorioak alda ditzakezu.
Elimina el punto de interrupción.
Sintaxis
Valor devuelto
Si la operación se realiza correctamente, devuelve S_OK; de lo contrario, devuelve un código de error. Devuelve E_BP_DELETED si el estado del objeto de punto de interrupción enlazado está establecido en BPS_DELETED (parte de la enumeración BP_STATE ).
Ejemplo
En el ejemplo siguiente se muestra cómo implementar este método para un objeto simple CBoundBreakpoint que expone la interfaz IDebugBoundBreakpoint2 .
HRESULT CBoundBreakpoint::Delete(void)
{
HRESULT hr;
// Verify that the bound breakpoint has not been
// deleted. If deleted, then return hr = E_BP_DELETED.
if (m_state != BPS_DELETED)
{
m_pInterp->RemoveBreakpoint(m_sbstrDoc, this);
// Change the state of the breakpoint to BPS_DELETED.
m_state = BPS_DELETED;
hr = S_OK;
}
else
{
hr = E_BP_DELETED;
}
return hr;
}