11.07.2015 Views

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

sm_com_call_methodCalls a method of a COM component or ActiveX widgetchar *sm_com_call_method(char *method_spec);method_specA string specifying the method and its parameters consisting of the following:object_idAn integer handle identifying the COM component whose methodyou want to call. The handle is returned throughsm_com_obj_create for COM objects, sm_prop_id for ActiveXcontrols.methodThe name of the method. Periods are allowed as part of the methodspecification, as in: Application.Quitp1, p2, ...(Optional) A comma-delimited list of the method's parameters.Unused parameters are allowed to be omitted, as in:sm_com_call_method ("TreeView, \"Add\" , , , , 'First node'")If the typelib cannot be used to determine the parameter's type, @obj canbe used to specify the object ID of the parameter. Generally, this syntax willnot be necessary. For an example of its usage, see the example undersm_com_load_picture.EnvironmentScopeReturnsWindows, WebClientOn Windows platforms:! The value returned by the COM component, converted to a string.! A null string if an error occurred. For the error code, call sm_com_result.Error codes are defined in winerror.h.C-4 Obsolete Functions

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

Saved successfully!

Ooh no, something went wrong!