- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good Morning everyone,
I encountered a problem in calling C++ dll from IVF andhope someone will be able to give some suggestions. Thanks. I created a C++ dll using .NET Wizards (see Walkthrough: Creating a COM Server Using Wizards) and wrote a C++ main program to call the routines in dll. It works fine. But when I tried to link the dll with a IVF main program. The following error appeared:
fatal error LNK 1136: invalid or corrupt file
Does any of you know how to resolve this problem? Thanks and have a great day.
Tom Lin
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good Afternoon everyone,
I have a comment on the message I posted this morning and hope some of you will share some of your experiences.
I think the reason that my IVF main program fail to link with the C++ dll is because the C++dll I used (created by .NET Wizards) is an 'managed code' and IVF program will only link with 'unmanaged' .NET C++ libraries. Any thoughts or comments? Thank and have super evening.
Tom Lin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're right that if you built a "managed" DLL, you can't call it directly from unmanaged code. You could use the "Fortran Module Wizard" to generate interfaces for it, but it would be better to build an unmanaged DLL from your C++ code.

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