- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I have a very basic question.
Is it possible to mix code IVFortran and C# ?
I need to call some small code which is written in C# from my Fortran program.
A colleague of mine tells me, that this is not possible because C# uses .Net and IVF cannot do .NET ?
Any information on this ?
Klaus
I have a very basic question.
Is it possible to mix code IVFortran and C# ?
I need to call some small code which is written in C# from my Fortran program.
A colleague of mine tells me, that this is not possible because C# uses .Net and IVF cannot do .NET ?
Any information on this ?
Klaus
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It depends on what you mean by mixing. Fortran falls in the unmanaged code category (unless you use one of the compilers from other vendors which could generate managed code). Steve posted examples on this forum of how to combine managed code with unmanaged Fortran.
Managed Fortran never achieved much popularity; it was done in order to integrate with .NET debugging and profiling.
Managed Fortran never achieved much popularity; it was done in order to integrate with .NET debugging and profiling.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you.
I found the old thread from Steve about managed code.
Well, looks like it is not easy to do.
I wanted to call some 'simple' funktion which my colleague wrote in C#, not much of data transfer, just some numbers.
I was hoping, that he could make a DLL or lib and I can attached this to my fortran code.
Klaus
I found the old thread from Steve about managed code.
Well, looks like it is not easy to do.
I wanted to call some 'simple' funktion which my colleague wrote in C#, not much of data transfer, just some numbers.
I was hoping, that he could make a DLL or lib and I can attached this to my fortran code.
Klaus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If he can create a DLL, then you probably can call it by using the "Fortran Module Wizard" tool. I don't know C# so can't easily come up with an example to try.

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