コード例 #1
0
 static extern fon9.CStrView f9omstw_MakeErrMsg(IntPtr txRes, ref byte pwbuf, uint buflen, OmsErrCode ec, fon9.CStrView orgmsg);
コード例 #2
0
 /// 建立錯誤訊息.
 /// - 如果 ec 在 txRes 沒設定, 則不改變 outbuf, 直接返回 orgmsg;
 /// - buflen 必須包含 EOS 的空間, 如果空間不足則輸出 orgmsg.
 public static string MakeErrMsg(IntPtr txRes, OmsErrCode ec, fon9.CStrView orgmsg)
 {
     byte[]        txbuf = new byte[1024];
     fon9.CStrView txmsg = f9omstw_MakeErrMsg(txRes, ref txbuf[0], (uint)txbuf.Length, ec, orgmsg);
     return(txmsg.ToString());
 }