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_obj_destroyRemoves a COM componentint sm_com_obj_destroy(int obj_id, int force);obj_idforceAn integer handle that identifies the COM component you want to delete,obtained through sm_com_obj_create.Specify the type of removal.If force is zero, only the specified component will be destroyed. Anycomponents obtained as values of a property of the component or returned bythe component's method calls will be retained.If force is zero, then these derived components will also be destroyed.EnvironmentScopeReturnsDescriptionWindowsClient0 Always.sm_com_obj_destroy removes COM components. Usage of this function is nolonger recommended; use sm_obj_delete_id instead to ensure componentportability. If force is zero, only the specified COM component will be destroyed. Anycomponents obtained as values of a component property or returned by method callswill be retained. If force is non-zero, then these derived components will also bedestroyed.the COM object will be removed. Otherwise, the COM component will continue toexist until the last of the dispatch interfaces is deleted by a call tosm_com_obj_destroy.For example, the following JPL code creates a treeview control and calls its propertiesfor nodes, node and font:vars tree, nodes, node, fonttree = sm_com_obj_create ("treeview")nodes = sm_com_get_prop (tree, "Nodes")C-10 Obsolete Functions

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

Saved successfully!

Ooh no, something went wrong!