C# 用C语言实现GraphViz动态链接库#

C# 用C语言实现GraphViz动态链接库#,c#,.net,dll,graph,graphviz,C#,.net,Dll,Graph,Graphviz,我试图实现(不幸的是,网站关闭了,所以我不得不在互联网档案中挖掘) 我在RenderDot函数中遇到错误: PInvokeStackImbalance was detected Message: A call to PInvoke function 'testing_graphs!testing_graphs.Graphviz::agmemread' has unbalanced the stack. This is likely because the managed PInvoke sign

我试图实现(不幸的是,网站关闭了,所以我不得不在互联网档案中挖掘)

我在RenderDot函数中遇到错误:

PInvokeStackImbalance was detected
Message: A call to PInvoke function 'testing_graphs!testing_graphs.Graphviz::agmemread'
has unbalanced the stack. This is likely because the managed PInvoke signature does
not match the unmanaged target signature. Check that the calling convention
and parameters of the PInvoke signature match the target unmanaged signature.

怎么办?有一个示例应用程序-可能有人拥有它?

Visual Studio 2012?此示例应用程序存在一些已知的稳定性问题。作者还对一个相关问题发表了评论:您是否尝试过这个:?对,我使用的是Visual Studio 2012。我尝试添加
CallingConvention=CallingConvention.Cdecl
-没有帮助。