public string MyMakeStr(byte[] b) { //string s=""; //SuperCom.CopyByteArrayToString(ref s, b); //return s; return(SuperCom.CopyZeroTerminatedBufferToString(b)); }
public String HNGetLastError() { short wErrorLen; byte[] szErrorText = new byte[128]; szErrorText[0] = 0; wErrorLen = 0; SuperCom.PLSV2.Heidenhain.HN_GetLastError(CommId, szErrorText, ref wErrorLen); return(SuperCom.CopyZeroTerminatedBufferToString(szErrorText)); }