[英]Alternative way of using .Net in perl than Win32::OLE?
與使用Win32 :: OLE將.Net dll合並到Perl中相比,Perl中是否有其他選擇? 我對Perl完全陌生,還不太了解……
我沒有用過.NET創建的DLL,並且告訴模塊在哪里尋找您的DLL並獲取正確的方法簽名可能很棘手,但是我成功使用Win32::API
在DLL中調用了任意函數Win32::API
模塊:
use Win32::API;
$my_function = Win32::API->new( 'my_dll_name', 'int my_func(int a,double b)' );
# call my_func(7, 1.5) in my_dll_name.dll
$result = $my_function->(7, 1.5);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.