Write data

char *WriteBuffer = "Data to write";

try
{
	m_SPCControl1.Write((LONG)WriteBuffer, strlen(WriteBuffer));
}
catch(COleDispatchException* E)
{
	MessageBox(E->m_strDescription, mbCaption, MB_OK | MB_ICONERROR);
}