[DllImport("xxx.dll")]
        static extern int PSMatch(int a,out int* b);
int rect = PSMatch(1,?);问好的地方改怎么传参数呢?

解决方案 »

  1.   

    int b = 0;
    int rect = PSMatch(1, out b);呵呵, 没分了, 把分给我吧
      

  2.   

    int b;
    DllImport("xxx.dll")]
            static extern int PSMatch(int a,out int* b);
    int rect = PSMatch(1,b);
      

  3.   

    [DllImport("xxx.dll")]
            static extern int PSMatch(int a,int* b);
    int b = 0;
    int rect = PSMatch(1, ref b);试下, 试对了给分, 刚才看错命题了
      

  4.   

    int b;
    DllImport("xxx.dll")]
      static extern int PSMatch(int a,out int* b);
    int rect = PSMatch(1,out b);
      

  5.   

    [DllImport("xxx.dll")]
      static extern int PSMatch(int a,ref b);
    int b = 0;
    int rect = PSMatch(1, ref b);
    呵呵, 最近老粗心了
      

  6.   

    [DllImport("xxx.dll")]
      static extern int PSMatch(int a,ref int b);
    int b = 0;
    int rect = PSMatch(1, ref b);
    呵呵, 最近老粗心了
      

  7.   


    int rect = PSMatch(1,ref t);