It is possible to call a method from a DLL Created in .NET from PERL?

前端 未结 1 1451
执念已碎
执念已碎 2021-01-20 04:42

I\'m using PERL 5.8.8 and I\'ve not found a way to read a PrivateKEY in format pkcs#8 in perl, so I\'m trying to create a dll in C# that can do it, so I can call the methods

1条回答
  •  情歌与酒
    2021-01-20 05:13

    Win::API is good for calling native Win32 methods, but to call .NET objects then you need to go through Win32::OLE. You also need to register the .NET object with COM via regasm. The full details of everything that may be required is up on perlmonks (although this is dated 2004, so things may have moved on), however it would be a starting point.

    0 讨论(0)
提交回复
热议问题