public bool dizAddField(int fid, string fieldname, string fielddata = "") { try { if (fielddata == "") { return(Luna.dizAddField(fid, fieldname, (IntPtr)0)); } IntPtr ptr = MallocIntptr(fielddata); ptr = ptr + 4;//将内存指针位置加 4 以兼容易语言内存操作模式 return(Luna.dizAddField(fid, fieldname, ptr)); } catch { return(false); } }