Using Intel® Visual Fortran to Create and Build Windows*-Based Applications

ID 757211
Date 7/23/2021
Document Table of Contents

Using the Intel® Fortran Module Wizard to Generate a Module

An ActiveX control is an Automation object. ActiveX controls typically support methods, properties, and events. ActiveX controls use events to notify an application that something has happened to the control. Common examples of events include clicks on the control, data entered using the keyboard, and changes in the control's state. When these actions occur, the control issues an event to alert the application.

The application, in return, uses methods and properties to communicate with the control. Methods are functions that perform an action on the ActiveX control. For example, you would use a method to tell an Internet Explorer ActiveX control to load a particular URL. Properties hold information about the state of an object, for example, the font being used by a control to draw text.

The Intel® Fortran Module Wizard generates Fortran 90 modules that simplify calling COM and Automation objects from Fortran programs.

To run the wizard:

  1. Select Tools>Intel (R) Fortran Module Wizard in the main menu bar. Select the component of interest in the .COM tab. Select Generate code that uses Automation interfaces and click Next.

  2. Select individual components of the ActiveX control to process using the module wizard or click Select All to process all components.

  3. Select either of the code generation options as desired.

  4. Enter a different module name than the one displayed, if desired.

  5. Click Finish.

The module wizard now asks you for the name of the source file to be generated. Supply the name and make sure the Add file to Project checkbox is selected. COM will now open the type library and generate a file containing Fortran modules.