Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public
Document Table of Contents

COMGetFileObject

COM Subroutine: Passes a file name and returns a pointer to the IDispatch interface of an automation object that can manipulate the file. This routine is only available for Windows.

Module

USE IFCOM

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(INT_PTR_KIND()).

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).