Error 42 When Trying to Interop with a C# Libary
John C via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Nov 5 13:45:55 PDT 2016
On Saturday, 5 November 2016 at 16:13:18 UTC, Sarcross wrote:
> If you're wondering, I did use the COFF2OMF tool on the library
> I got from the C# code, which is why in WordFileParser.d you'll
> see "pragma(lib, "Parser2")".
I have never had success trying to link with a lib file converted
by COFF2OMF.
Are you able to use -m32mscoff? I was able to call a .NET DLL
using the technique in the tutorial when I tried it a few months
ago, using that DMD option instead.
More information about the Digitalmars-d-learn
mailing list