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_createInstantiates a COM componentint sm_com_obj_create(char *name);int sm_c_com_obj_create(char *clsid);clsidnameSpecify the CLSID (Class ID) of the COM component.Specify the name of the COM component.EnvironmentScopeReturnsDescriptionWindowsClient1 Success: the component's object ID.sm_com_obj_create instantiates COM components. Usage of this function is nolonger recommended; use sm_obj_create instead to ensure component portability.The COM component must support the IDispatch interface (the “automationinterface”) so that properties can be set and methods can be called. For returns greaterthan zero, the call has succeeded and the object ID will be used to access thecomponent.For ActiveX controls, you do not call this function. The ActiveX container in thePanther editor specifies the name and CLSID of the component, and makes this call onyour behalf.Example//The following JPL procedures create a variable// and instantiate the control.vars idproc entryid = sm_com_obj_create("cCustomers")returnSee Alsosm_obj_create<strong>Upgrade</strong> <strong>Guide</strong> C-9

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

Saved successfully!

Ooh no, something went wrong!