| Ole4D Methods | ||||||||||||||
|
OCCreaFromCLSID(p_AreaVar;p_ClassId) Creates an instance of the Ole object identified by Class ID. Object is created in the plug-in area passed as parameter. The Class ID must be sent as a string of the format {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}. The object who has the Class ID specified as parameter must be installed on the local machine.Parameters
Return Values 0 – if the method call was successful. If the method call was not successful the return value is non zero. For more information call OCLastError. Remarks The object is created in the inactive state. The user interface of the object like tool bars and menus is not shown at this time. To enable and show the user interface of the object call OCActivate. Example
$i := OCCreaFromCLSID(OlePlugIn,“{0003000a-0000-0000-C000-000000000046}”)See Also OCCreaLinkToFile, OCCreaFromProgId, OCCreaFromFile , OCCreaFromBlob,OCDestroyObject, OCActivate | ||||||||||||||