在C#中调用ngspice.dll [英] invoking ngspice.dll in C#
本文介绍了在C#中调用ngspice.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否有人使用C#在.NET中使用ngspice.dll(混合级/混合信号电路模拟器),是否有任何代码演示如何调用它?任何帮助,将不胜感激。
http://ngspice.sourceforge.net/shared.html [ ^ ]
I'm wondering if anyone has worked with the ngspice.dll ( mixed-level/mixed-signal circuit simulator) in .NET with C#, Is there any code demonstrates how it can be invoked? Any help would be appreciated.
http://ngspice.sourceforge.net/shared.html[^]
推荐答案
据我所知,这是一个本机共享库,而不是CLI,所以你需要使用P / Invoke:
http://en.wikipedia.org/wiki/Platform_Invocation_Services ,
http://msdn.microsoft.com/library/en-us/vcmxspec/html/vcmg_PlatformInvocationServices.asp 。
此CodeProject文章也很有用: http://www.codeproject.com/csharp/EssentialPInvoke.asp。
-SA
As I understand, this is a native shared library, not CLI, so you will need to use P/Invoke:
http://en.wikipedia.org/wiki/Platform_Invocation_Services,
http://msdn.microsoft.com/library/en-us/vcmxspec/html/vcmg_PlatformInvocationServices.asp.
This CodeProject article can also be useful: http://www.codeproject.com/csharp/EssentialPInvoke.asp.
—SA
这篇关于在C#中调用ngspice.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文