COM::getObjectEx Method

Returns an instance of a COM object that is specified by its file name.

Syntax

client server public static COM getObjectEx(str fileName)

Run On

Called

Parameters

  • fileName
    Type: str
    The name of the file that provides the functionality for the COM object that is used to create the instance of the COM class.

Return Value

Type: COM Class
An instance of the COM class that is specified by the filename parameter; nullNothingnullptrunita null reference (Nothing in Visual Basic) if the instance could not be created.

Remarks

To help reduce security risks that are associated with unmanaged code, make sure that you validate the objects that are passed to this method, and that all DLLs used for your COM objects are protected by access control lists.

See Also

COM Class

COM::getObject Method

COM.new Method