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

ID 767251
Date 6/24/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

The Role of the Module Wizard

This topic only applies to Windows.

Follow these steps to use COM and Automation objects from a Fortran program:

  1. Find or install the object server on the system

    COM and Automation objects can be registered by other programs you install, or by creating the object server yourself, for example, by using Visual C++*, or Visual Basic*.

    For example, the Microsoft visual development environment registers certain objects during installation (see the Microsoft documentation).

    Creating an object server involves deciding what type of object and what type of interfaces or methods should be available. The object's server must be designed, coded, and tested like any other application.

    For information about object server creation, see Create the Fortran COM Server.

  2. Determine the following about the object:

    • Whether it has a COM interface, Automation interface, or both.

    • Where the object's type information is located.

    You should be able to obtain this information from the object's documentation. You can use the OLE/COM Object Viewer tool from the development environment Tools menu to determine the characteristics of an object on your system.

  3. Use the Intel® Fortran Module Wizard to generate code.

    The module wizard is an application that allows you to select a COM or Automation object and set generated code options. The information collected by the module wizard is used in the generated code.

    To learn about using the Intel® Fortran module wizard, see Use the Module Wizard to Generate Code.

  4. Write a Fortran program to invoke the code generated by the Intel® Fortran module wizard.

    To understand more about calling the interfaces and jacket routines created by the module wizard, see Call the Routines Generated by the Module Wizard.