contents   index   previous   next



Initializing OLE

 

Before your Fortran application can use Automation services, it must initialize the OLE/COM environment. With f90VB this is done with a simple call to function OleInitialize:

 

iRet = OleInitialize()

 

 

Function OleInitialize does not have arguments. The function returns S_OK if it was successful, or an error code if it wasn’t. The complete syntax of the function is explained in the f90VB Reference Manual [37].