Gets the error code returned by the last call to a COM componentint sm_com_result(void);
sm_com_resultreturns the result from the last call to an
sm_comroutine. Only the result of the last call is recorded; subsequent calls will overwrite this value.
HRESULTvalues are only available on Windows platforms and are determined by the OLE specifications and the COM component author. For values, refer to
winerror.hand the documentation for the COM component.
Since an error handler will only be fired on negative exception codes, use this function to retrieve positive exceptions.
id = sm_prop_id("spinner");
sm_obj_set_property(id, "Value", "40");
errcode = sm_com_result();