I have a COMMON block with about 7000 variables that I would like to get read/write access to from C#. Is there some way to do this without having to write GetXXX/SetXXX functions?
I think that if you declare your common block with the DLLEXPORT attribute, it should be accessible from outside directly (in the same way as a record or a derived type). I've already made this but between fortran dlls and it worked fine. I don't know if it will be the same between fortran and C# but you can try.The declaration should something like:
!DEC$ ATTRIBUTES DLLEXPORT :: /COMMON_BLOCK_NAME/