COMMON block access from C#

COMMON block access from C#

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?

-- Jon

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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:


Leave a Comment

Please sign in to add a comment. Not a member? Join today