对于.NET平台调用服务 [英] Platform invocation services for .NET
本文介绍了对于.NET平台调用服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有更好的方式来加载和使用功能的DLL文件的.NET(C#),比使用所谓的的P / Invoke ?
Is there any better way to load and use functions from a DLL file in .NET (C#) than by using so-called P/Invoke?
如果DLL文件中含有使用JNI是仍然有办法使用它们.NET编写的函数?
If the DLL file contains functions that were written using JNI is there still a way to use them in .NET?
推荐答案
有关本机DLL你的选择是P / Invoke和COM。后者是更容易,一旦你有过做一个COM服务器的不小的障碍。
For native DLLs your options are P/invoke or COM. The latter is easier once you have got over the not insignificant hurdle of making a COM server.
这篇关于对于.NET平台调用服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文