Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by syphilis (Archbishop)
on May 08, 2018 at 23:56 UTC ( [id://1214242]=note: print w/replies, xml ) Need Help??


in reply to Re^2: 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

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

Replies are listed 'Best First'.
Re^4: Import a DLL from C# to Perl
by paulorfmmb (Acolyte) on May 09, 2018 at 12:34 UTC
    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://1214242]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-18 18:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found