in reply to Re^3: Import a DLL from C# to Perl
in thread Import a DLL from C# to Perl
And, AFAIK, it doesn't matter whether the dll you want to load was built from C code or C# code or C++ code.
There is a problem with C#, in as much as (AFAIK) it always produces .NET Managed Assemblies. Essentially, the DLL contains initialisation and thunking code to connect it to the .NET subsytems, that needs to be called for stuff to work. It's meant to be done by wrapping it in a COM wrapper; but there is another way: Reverse P/Invoke
At that point, I've described more than I understand, so I'll leave it to the OP to follow the link and read about there.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Import a DLL from C# to Perl
by syphilis (Archbishop) on May 10, 2018 at 04:56 UTC | |
by BrowserUk (Patriarch) on May 10, 2018 at 05:35 UTC |