Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Graphics calls don't work (?)

WSinc
New Contributor I
1,329 Views

I tried doing this to open a program -:

type

(windowconfig)wc

status=getwindowconfig(wc)

print *,"window size=",wc.numxpixels,wc.numypixels

print *,wc.title

OPEN(UNIT = 10, FILE = 'USER', TITLE = 'Child Window 1')

OPEN(UNIT = 11, FILE = 'USER', TITLE = 'Child Window 2')

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

and I get a fatal run-time error when it tries to open Unit 10 or Unit 11.

Is there something else I have to do first? The documentation doesn't give me a clue.

How does it know if the UNIT number is pointing to a file on disk or to a window?

0 Kudos
5 Replies
WSinc
New Contributor I
1,329 Views
In fact, it mentions "Fatal error when opening FILE." So obviously it's confused about the difference between a graphics window and a disk file.
0 Kudos
anthonyrichards
New Contributor III
1,329 Views
Make sure you have created a QuickWin project, and USE all the correct modules.
0 Kudos
WSinc
New Contributor I
1,329 Views

It definitely is a Quickwin Project, and I put USE IFQWIN in the header of the program.

The error message says "fatal error accessing file, unit 10."

Unfortunatety, I could NOT copy and paste the actual error message verbatim.

0 Kudos
Steven_L_Intel1
Employee
1,329 Views
Can you come up with a small but complete example that demonstrates the problem?
0 Kudos
WSinc
New Contributor I
1,329 Views
OK, will do. Separate thread.
0 Kudos
Reply