I am making a dll from a basic code and calling it from fortran. I'm using something called Visual DLL. This product takes the basic code and creates a .dll and .lib file which is supposed to look like a c dll and lib. Everything seems to be working fine. I can pass data back and forth from my fortran code to my basic code. I get a problem when I try to read or write in the fortran calling program or try to exit the calling subroutine. I get an Unhandled exception: Access violation. Is there something I should be doing in the Interface section or is there something else I should be doing? Like I said, this dll and lib file should look just like a c code to the fortran.
For more complete information about compiler optimizations, see our Optimization Notice.