如果没有办法的话,我就只能去速学C++了

解决方案 »

  1.   

    http://developer.51cto.com/art/200908/141863.htm
      

  2.   

    有啊,C#本身就提供调用native语言的dll,不过这些dll要实现一些extern   "C" 接口。
    你c#调用的时候,就要引入using System.Runtime.InteropServices名称空间,然后用这个样子调用:
    [DllImport(“XXX.dll")] 
    public static extern int MethodName(int a,int b); 
    你可以查看一下dllImport这个attribile(特性)。或者上google一下“c#调用c++”