- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page