Tel: +44(0)1865 300 579
Fax: +44(0)1865 300 232

Programs for Programmers

Windows API Programming in Fortran

Course Aims

The attendee learns how to create Windows applications in Fortran by direct calls to the Microsoft Windows API routines.

Entry Requirements

You should have Fortran programming experience, Fortran 90 linguistic proficiency (commands like MODULE, USE, TYPE, INTERFACE or KIND should be familiar to you); you should be able to use the Windows operating system (copy files, using Windows File Explorer, open a DOS box for example)

Duration

One Day

Frequency/Dates

On Demand

Course Description

The course is held in the form of a workshop with alternate lectures and practical exercises.

The basis of programming Windows applications is understanding the Windows Application Programming Interface (WinAPI). The one-day course imparts the necessary knowledge and shows you:

  • how and where to find the WinAPI functions,
  • how the description of WinAPI functions have to be converted into Fortran
  • how to master special requirements for calling WinAPI functions (e.g. null pointers, functions with variable types, passing of structure values, copy of memory contents)

You learn the most important WinAPI data types and you get to know their equivalences in Fortran so that you can easily convert WinAPI declarations to Fortran notation. You learn the difference between "call by reference" and "call by value" and you will learn to work with the standard calling convention. With this, you acquire not only the ability to call WinAPI functions but also the basis of mixed language programming. i.e, you can call functions contained in DLLs which are written in other programming languages. The course also provides in-depth knowledge about the topics "release of the stack storage" and "hidden length argument" and will provide you with various other tips and hints from an expert.


Course Documents

The course documents are available in English and consist of a tutorial and software on CD-ROM with example programs written in Fortran.

Registration

The course can be held with a minimum of 5 and a maximum of 10 attendees, and is usually held at the customer's site.  Attendees need to provide their own PC with either Absoft/Compaq/Intel/Lahey/Salford Fortran compiler.

Price on application.