- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does anyone have any example code for accessing the .net framework from Fortran?
In particular, I want to be able to use ComputeHash for SHA256.
Thanks,
David
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fortran can call managed code only if assembly was compiled with "ComVisible(true)" attribute and with "Register for COM interop" build setting. "ComputeHash" is not COM-visible. In this case it's possible to create new "wrapper" .net assembly with COM-visible "SHA256_ComputeHash" method and build it with "Register for COM interop". After that "SHA256_ComputeHash" will we accesible from Fortran via code generated by "Intel(R) Visual Fortran Module Wizard".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found an easier solution. SHA256 is available in crypt32.lib, and I was able to access it through a C++ wrapper linked to my Fortran code.
Thanks,
David

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