- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
-- Jon
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
The declaration should something like:
!DEC$ ATTRIBUTES DLLEXPORT :: /COMMON_BLOCK_NAME/

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