- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Friends;
I spend some time to develop an easy and consistent way to call C++/FORTRAN (DLL) from a Windows (WPF) main application which has its own console as well as a Windows GUI. The attached document describes the procedure I was able to use to achieve this. If there is any interest, I can post the source code or VS 2017 solution files as well.
i. konuk
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just so I can understand you created a middle tier of C++/CLI such that you can add the Fortran code as a reference assembly instead of using `[DllImport()]` and hoping to get the arguments correct and not corrupt the stack. Kudos, this is really good work here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.
Yes, indeed no DLLImport. All calls across the C# to C++/FORTRAN boundary are from Managed-To-Managed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
İbrahim, Thanks for the attachment. Saved a lot for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yavuz:
You are most welcome. Happy New Year!
i. konuk

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page