Windows GUI application using Intel Fortran & Visual Studio Community

Hey all. I’m a longtime C# Visual Studio user developing engineering apps with WinForms GUI’s, and recently decided to take a look at Fortran. I successfully installed the Intel Fortran Compiler standalone version and it works fine in Visual Studio. However, I checked the Intel documentation and it says " To build your application as a Fortran Windows application in the visual development environment, choose Windowing Application from the list of Project types when you open a new project.". However, when I create a new project in VS, the only choices that seem related to Windows GUI’s (under “Fortran” and “Windows” filters) are “Standard Graphics Application” and “QuickWin” application. And it sounds like “QuickWin” is just a bare-bones GUI that doesn’t do all the standard controls.

Does anyone know what I’m missing? Do I need to download something additional, or maybe this functionality is only available in the paid version?

Thanks.

1 Like

Hi @EdBergerly and welcome.

(Disclaimer: I haven’t used Windows in over a decade, so things may have changed)

Standard Graphics Application and QuickWin have the same underlying behavior (i.e., provide a Windowing frame with canvas-like capabilities), but QuickWin also lets you open multiple child windows with open(FILE = '', ...).

To build something using the Windows C API (assuming the C++ capabilities are there), look for “Windowing Application”. In this case, a WinMain function must be provided in lieu of a Fortran main-program unit, and most of the Windows C API can be accessed through the IFWIN module (it used to be DFWIN back in the day). And for COM-related stuff, there should be a wizard option to generate interfaces.

You can check this document for a complete overview.

Choose SDI Code

Have a look at this.
https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-reference-build-windows-applications/15-0/creating-windowing-applications.html