11.07.2015 Views

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

sm_com_set_propSets the value of a property of a COM componentint sm_com_set_prop ( int obj_id, char *prop, char *val );obj_idpropvalAn integer handle that identifies the COM component whose property youwant to set. The handle is returned through sm_com_obj_create for COMobjects, sm_prop_id for ActiveX controls.The designated property. Refer to the Description for information aboutavailable properties.The value to set for the specified property or property item. Panther convertsthe value to the type expected by the component.If the value needs to be sent as an object ID, @obj() can be used to specifythe object ID. For an example of its usage, see the example undersm_com_load_picture.EnvironmentScopeReturnsWindows, WebClientOn Windows platforms:! The HRESULT from the most recent COM component function call. Refer towinerror.h for values; 0 is the value for S_OK.On UNIX platforms:0 Success.-1 Failure.Descriptionsm_com_set_prop sets the value of the specified COM component property. Usageof this function is no longer recommended; use sm_obj_set_property instead toensure component portability.<strong>Upgrade</strong> <strong>Guide</strong> C-17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!