COM Subroutine: Passes a file name and returns a pointer to the IDispatch interface of an automation object that can manipulate the file.
Module: USE IFCOM
Syntax
CALL COMGetFileObject (filename, idispatch, status)
filename
The path of the file of type CHARACTER*(*).
idispatch
An output argument that returns the object's IDispatch interface pointer. Must be of type INTEGER(4).
status
The status of the operation. It can be any status returned by the CreateBindCtx or MkParseDisplayName routines, or the IMoniker::BindToObject method. Must be of type INTEGER(4).
See Also
CreateBindCtx, MkParseDisplayName, and IMonker::BindToObject in the Microsoft* Platform SDK