static unsafe void Main(string[] args) { Rtk rtk = Rtk.rtkdefault; ProcOpt opt = ProcOpt.poptdefault; //RtkPost_Rinex.rtkinit(ref rtk, ref opt); //IntPtr x = Marshal.AllocHGlobal(4); double *x = RtkPost_Rinex.Zeros(3, 1); x[1] = 2; for (int i = 0; i < 3; i++) { Console.WriteLine(x[i]); } Console.ReadKey(); }
public static extern int RtkInit(ref Rtk rtk, ref ProcOpt opt);