Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Import a DLL from C# to Perl

by nikosv (Deacon)
on May 10, 2018 at 05:00 UTC ( [id://1214308]=note: print w/replies, xml ) Need Help??


in reply to Import a DLL from C# to Perl

2 thoughts.One is to place your DLL in the GAC where .NET looks for dependmcies.You have however to sign the assembly in order to do that.Check How to: Install an Assembly into the Global Assembly Cache

The second is to use Process Explorer to check where your process is trying to load your dll from,and then place it in there.

Truth is that you have like 3 levels of indirection;A C++ programm calls a C# programm, both under managed CLR, which calls into the unmanaged Win32 API, most probably through P/Invoke, to get the messagebox function.What are you actually trying to do?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1214308]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-18 19:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found