Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29281 Discussions

using FORTRAN in C# Windows applications

salgado_rod
Beginner
637 Views

I would like to use existing FORTRAN code in C# 2005 Windows applications. I could not find instructions anywhere on the best way to do this. Could anyone point me in the right direction?

Thanks.

Rod

0 Kudos
1 Reply
cneufeld
Beginner
637 Views

Hi Rod,

I have run into the same problem. I have started to experiment with Fortran and C# in the same VS 2005 solution. I habe been able to pass integers, real numbers, and arrays back and forth from C# to a fortran dll. Please see the attached project for an example.

You can debug in both C# and fortran, but you have to turn on an option in the C# project. Click on Project/properties. Choose the debug tab. Check the box to enable unmanaged code debugging.

Hope that helps.

Chad

0 Kudos
Reply