Software Archive
Read-only legacy content
17060 Discussions

Obtaining a Fortran LUN for an Window

Intel_C_Intel
Employee
387 Views
I am building an VB application that will call a Fortran DLL. The DLL will obtain data from files (filenames passed as argument) and write data back to files. The calculations performed by the DLL are lengthy and the code (converted from .EXE) contains status messages to keep the user informed of the status. I'd like to create a window in VB before calling the DLL and passing these status messages to the window. I can get a handle for the window, but how do I obtain a corresponding fortan LUN for use in Write or print statements? GETHWNDQQ appears to do the opposite. I'd prefer to open the window in VB (rather than a console window) so that I can include a command button to print the contents. Any ideas?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
387 Views
Sorry - there's no way to do this. The only way to write into a window using Fortran WRITE is if you have a QuickWin application. In your case, I suggest you use callbacks into VB to do the displaying - either that, or code the output in Fortran using Win32 API routines.

Steve
0 Kudos
Reply