File Handles in Mixed Language Programming
Posted on 1998-08-03
I need a way to figure out how to obtain a listing of all files and there associated handles that a program has open at any given time during program execution. I need this because I am opening, reading, writing, and closing my files in Fortran, but I am locking and unlocking records in these files using C++ (the original LOCKING routine was eliminated by Microsoft when they created Fortran Powerstation). Anyway, I'm using Microsoft Developer Studio in conjuction with Visual C++ and Fortran Powerstation. There is no way in Fortran that I know of to obtain the handles of the files that it opens. Is there any other way I can get these handles? This will be a tough question, I think. It must be stored somewhere in some type of table, no?