How to call an .NET dll API in Perl? RRS feed

  • Question

  • I need to integrate a .NET dll into Perl code, and I am unable to find information (online) on a reliable way to use functions in a dll that was created from a .NET framework, in Perl.

    I found this webpage that explains one way to do it using COM objects, but my Perl code fails when using 




    with the following error



     file: test.pl, line: 10, function: _DieHandler
     Testcase died
     Win32::OLE(0.1601) error 0x80070002: "The system cannot
     find the file
     specified" at test.pl line 10
             eval {...} called at test.pl line 10


    I have to use Perl, because we have a huge existing framework in Perl.


    • Moved by Paul Zhou Friday, July 1, 2011 7:44 AM (From:.NET Base Class Library)
    Thursday, June 30, 2011 12:59 AM

All replies