Using Fortran

Sid Kraft 46 Reputation points
2026-07-22T13:47:41.2566667+00:00

Seems to be confusion over the display of a window using winio@ In Fortran vs C++, when one wants to open a window to display graphics data, the following commands will do:

Fortran:

i=winio@('sp%%ww[Title Data]&}

glTranslate(.2,.1,0.)

.

.

.

This will open a window and start to display graphic data using the OpenGL system.

My Question is: What are the comparable system commands and library commands to do the same thing using Visual Studio C++?, i.e.:

#Include<????>

Library files to include for the C/C++ additional directives?

Library files to include for the Linker?

Sid Kraft

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 84,671 Reputation points
    2026-07-22T14:41:01.78+00:00

    Your example code is an OpenGL library included with a particular Fortran. While it’s probably callable from C/C++ there is no documentation for this. You would need to create your own .h files to define the api.

    I know of no C/C++ compiler that comes with a builtin OpenGl library. You need to pick a 3rd party OpenGl library written for C/C++. Here is a list:

    https://wikis.khronos.org/opengl/Related_toolkits_and_APIs

    In general you pick an sdk, download and build the sdk. You then update your project to reference the sdk. GLFW is one of the popular and comes with pre compiled binaries.

    https://www.glfw.org

    Note: If you ask for more help, tell us which library you picked and where you installed it.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.