你可以采用out或者ref来传你的值.

解决方案 »

  1.   

    比如动态链接库的方法是:
    int csc_4442(int icdev, int len, unsigned char* p_string)
    我该怎样调用它并且把p_string的值转到C#中? 
      

  2.   

    你在你的MSDN中查一下"封送字符串".
    手头没有这样的函数不能试了.
      

  3.   

    应该这样在C#中声明:
    [DllImport("sss.dll")]
    public extern static extern ss(string  s);然后直接调用就可以了