| Gentee Programming Language > Documentation > Libraries | Download documentation |
The method creates a new COM object
uint oleobj.createobj( str name, str mashine )
name An object name, or the string representation of an object identifier - "{...}". mashine A computer name where the required object is created; if the current string is empty, the object is created in the current computer.
If error occurs, method returns zero, otherwise returns 1.
Example
oleobj excapp
excapp.createobj( "Excel.Application", "" )
//is equal to excapp.createobj( "{00024500-0000-0000-C000-000000000046}", "" )
excapp.flgs = $FOLEOBJ_INT
excapp~Visible = 1
See also
Copyright © 2004-2006 Gentee Inc. All rights reserved. |