//文本获取 private void btnGetTextByID_Click(object sender, EventArgs e) { m_strModelName = this.tbTextID.Text; int nSize = 200; StringBuilder szText = new StringBuilder(200); int nRet = CSharpInterface.HS_GetTextByName(m_strModelName, szText, ref nSize); if (0 == nRet) { tbNote.Text = "Get text value successfully!"; } else { ShowLastError(); return; } this.tbTextTXT.Text = m_strTextTxt = szText.ToString(); }