Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Import a DLL from C# to Perl

by paulorfmmb (Acolyte)
on May 08, 2018 at 16:31 UTC ( [id://1214224]=note: print w/replies, xml ) Need Help??


in reply to Re: Import a DLL from C# to Perl
in thread Import a DLL from C# to Perl

I tried using Inline::C and Inline::CPP and I get the same result. Looks like Perl doesn't have access to something from the C# enviroment. And it is not about the MessageBox, I'm just using it as an example.

Replies are listed 'Best First'.
Re^3: Import a DLL from C# to Perl
by syphilis (Archbishop) on May 08, 2018 at 23:56 UTC
    I tried using Inline::C and Inline::CPP and I get the same result

    According to what I found on StackOverflow the error is simply that a file cannot be found.
    When you run the perl script, is it running in the exact same shell that successfully runs the C/C#/C++ programs ?
    I'm thinking that the success you experience with the C/C#/C++ programs will depend upon certain environment variables being set correctly ... and that the failure you experience when running the perl script arises because one or more of those environment variables is no longer set (or has been altered).

    Cheers,
    Rob
      No, not the same shell. My C++ and C# code were build with VS. The C code that I could run as a test I used DEV-C++.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-19 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found