Write data

// using System.Runtime.InteropServices;

byte[] ReadBuffer = System.Text.Encoding.ASCII.GetBytes("Write Data");
IntPtr Ptr = Marshal.AllocHGlobal(ReadBuffer.GetLength(0));
Marshal.Copy(ReadBuffer, 0, Ptr, ReadBuffer.GetLength(0));

try
{
	ftspcControl1.Write(Ptr, (uint)ReadBuffer.GetLength(0));
}
catch (FTSPCException E)
{
	MessageBox.Show("Error " + E.ErrorCode.ToString() + "\r\n" + 
		E.ErrorSource, "Error", MessageBoxButtons.OK,
		MessageBoxIcon.Error);
}