Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Calling C# from Fortran

Ranbir_Singh_Shoker
380 Views

Hello

I'veseen alot writtenabout how to call a fortran DLL routine from C#, but nothing about how to call a C#DLL routine from inside a fortran program. Is this even possible, and if so how difficult is it?

Thanks

Ranbir

0 Kudos
1 Reply
Steven_L_Intel1
Employee
380 Views

I don't think C# is capable of creating an unmanaged DLL. Instead, you'd use the Fortran Module Wizard's .NET tab to generate interfaces to the methods the C# code exports. I haven't tried this myself.

0 Kudos
Reply