Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Obtaining a Fortran LUN for an Window

Intel_C_Intel
Employee
393 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
393 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