Gentee Programming Language > Documentation > Libraries Download documentation

oleobj.createobj

The method creates a new COM object
 
uint oleobj.createobj(
      str   name,
      str   mashine
)

Parameters

nameAn object name, or the string representation of an object identifier - "{...}".
mashineA computer name where the required object is created; if the current string is empty, the object is created in the current computer.

Return value

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

    Working with COM Object


 Copyright © 2004-2006 Gentee Inc. All rights reserved.