DFCOM routines help you work with COM objects. To use a DFCOM routine, add the following statements to the program unit containing the routine:
USE DFCOMTY USE DFCOM
Table E-7 summarizes DFCOM routines.
Name | Description |
---|---|
COMAddObjectReference | Adds a reference to an object's interface. |
COMCLSIDFromProgID | Passes a programmatic identifier and returns the corresponding class identifier. |
COMCLSIDFromString | Passes a class identifier string and returns the corresponding class identifier. |
COMCreateObjectByGUID | Passes a class identifier, creates an instance of an object, and returns a pointer to the object's interface. |
COMCreateObjectByProgID | Passes a programmatic identifier, creates an instance of an object, and returns a pointer to the object's IDispatch interface. |
COMGetActiveObjectByGUID | Passes a class identifier and returns a pointer to the interface of a currently active object. |
COMGetActiveObjectByProgID | Passes a programmatic identifier and returns a pointer to the IDispatch interface of a currently active object. |
COMInitialize | Initializes the COM library. |
COMGetFileObject | Passes a file name and returns a pointer to the IDispatch interface of an Automation object that can manipulate the file. |
COMQueryInterface | Passes an interface identifier and returns a pointer to an object's interface. |
COMReleaseObject | Indicates that the program is done with a reference to an object's interface. |
COMUninitialize | Uninitializes the COM library. |
For more information on these routines, see the Compaq Visual Fortran online Reference.