public string GetLicError(int statcode) { byte[] errbytes = new byte[1000]; IntPtr errmsg = RLMEZ.rlmez_errstring(statcode, errbytes); string errstring = Marshal.PtrToStringAnsi(errmsg); return errstring; }