I am trying to call a 3rd party .NET dll from fortran program and can't seem to get it working. Following along with the Help documentation, I am trying to use ASSEMBLY_EXTERNAL() and OBJECT(), but keep getting this error:
'error 810 - ASSEMBLY_EXTERNAL is only allowed in CLR mode (with /CLR switch specified)'
This error persists even when I add the /CLR directive through Project Compiler Options or to the appropriate line of a build script.
Can anyone help me figure out what I'm missing? Is there a working example of Fortran calling a .NET dll that I could study?
Thanks very much for any help!