Use the Module Wizard to Generate Code

This topic only applies to Windows.

To run the Intel® Fortran Module Wizard:

Use .NET Components

The .NET tab is available on the first dialog box. The module wizard cannot directly read the type information of a .NET component. However, the .NET Framework Tools (provided with Visual Studio*) contain the Type Library Exporter (Tlbexp.exe). The Type Library Exporter generates a COM type library that describes the types defined in a .NET component (also known as a common language runtime assembly).

Select the .NET tab to view the assemblies that are registered in your system’s Global Assembly Cache (GAC). The list contains the same three columns as the COM tab, as well as a Browse for Assembly button. Select a .NET component from the list, or use the Browse for Assembly button to select a .NET component on your system.

Click Next > to run the Type Library Exporter tool to create a type library from the .NET component. If the tool returns an error message, the message is displayed in a dialog box and the Wizard returns to its first dialog box. In this case, no Fortran module is generated. If the tool succeeds, the second Wizard dialog box is displayed with the members found in the type library.

There are restrictions on the .NET components that can be used with the Type Library Exporter tool. For example, a common error message returned by Type Library Exporter tool is the following:

You cannot use Tlbexp.exe to produce a type library from an assembly that was imported using the Type Library Importer (Tlbimp.exe). Instead, you should refer to the original type library that was imported with Tlbimp.exe.

In this case, the .NET assembly was created from the information in a type library, and you must obtain the original type library from the assembly provider in order to use it with the Module Wizard.

The Wizard runs the Type Library Exporter tool with the /nologo /silent options. You can also run the tool to create a type library before running the Module Wizard if you prefer.

Intel® Fortran Module Wizard Command Line Interface

The Intel® Fortran Module Wizard also has a command-line interface. The MODWIZ command has the following form:

MODWIZ [options] typeinfo-name

To see a list of MODWIZ command options and an explanation of typeinfo-names, type the following command in a Fortran command prompt (available from the Intel® Fortran Compiler program folder):

MODWIZ /?