[StructLayout(LayoutKind.Sequential)]
public   struct   colorstruct 
{
... 
}

解决方案 »

  1.   

    有精通的朋友加我msn,做arcgis二次开发的更好,先谢谢大家了
      

  2.   

    估计是这样
    void CressmantestforSK(int a, int irad, ref float rads,
        int isiz, int jsiz, float dbCellSize,
        double lnmin, double lnmax, double ltmin, double ltmax, long stnnum,
        ref float stnlon, ref float stnlat, ref float stnrpt,
        ref float grid, IntPtr colorArray, int iLineNum, float NoDefineVale);
    colorArray参数通过
    Marshal.UnsafeAddrOfPinnedArrayElement();
    得到初始地址
      

  3.   

    考虑一下是否是字节边界对齐问题.尝试一下调整Layout的对齐大小
      

  4.   

    不好翻译的类型(指针)先用IntPtr代替,先把接口调试通过再想办法
    struct colorstruct
    {
        public double dbValueInterval;
        public IntPtr str;
        public IntPtr ipColor; 
    }