On Mon, 09 Nov 2009, Jason Lowder wrote: > > I'm attempting to use a C# method from my Perl script but am receiving > a return code of 127 and "unknown error" for $!.
You cannot call .NET code using Win32::API. It is not native x86 code, but code for a virtual machine that must be executed by the .NET runtime. You can call .NET code from Perl using PerlNET from the ActiveState Perl Dev Kit. You can find more information (and download a trial version) here: http://www.activestate.com/perl_dev_kit/ http://docs.activestate.com/pdk/8.1/PerlNET_overview.html A free alternative if you only want to call into .NET might be the Win32::CLR module from CPAN. You'll need to compile it yourself with the corresponding Microsoft C++ compiler. I've never tried it myself, so I don't know if it works or not. Cheers, -Jan _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs