- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there, my research group has traditionally been working with lahey f90 fortran compiler, which in my humble opinion is the worst compiler I had the misfortune to work with, but it had a "nifty" feature (at least for our purpose).
During compilation of the fortran dll I could specify a -win flag, whichallowed meto use print statements in the fortran code, for example to print values of certain variables on a msdos screen in the backgroundduring the execution of the DLL from the visual basic main part of the program. This made much simpler our debugging process.
Now I have managed converting our dll so that compaq visual fortran compiles it correctly and the vb code runs smoothly with it....but is there any way i could get that msdos window (or something similar)back?
Thanks in advancefor your help
Maurizio
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
USE DFWIN
i = AllocConsole() !Creates a console
!Your code with print * here
i = FreeConsole() !Destroys the console
See also: OutputDebugString.
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hey thanks a lot!! :)
and thanks to the console window I found out that the values of the variables passed by VB to the DLL do not match with the same DLL created with lahey....bummer...back to the drawing board!!
Maurizio

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