COMCreateObjectByProgID
DFCOM Subroutine: Passes a programmatic identifier,
creates an instance of an object, and returns a pointer to the object's IDispatch interface.
Modules: USE DFCOM
Syntax
- CALL COMCreateObjectByProgID (prog_id, idispatch,
status)
- prog_id
The programmatic identifier of type CHARACTER*(*).
- idispatch
An output argument that returns the object's
IDispatch interface pointer. Must be of type INTEGER(4)
on ia32 processors; INTEGER(8) on ia64 processors.
- status
The status of the operation. It can be any status returned by
CLSIDFromProgID or CoCreateInstance. Must be of type INTEGER(4).
See Also:
CLSIDFromProgID and CoCreateInstance in the Win32 SDK.
For more information on
CLSIDFromProgID and CoCreateInstance, see the OLE section
of the Win32 SDK.