Hi, I'm using the Microsoft communications control v6 in my program to communicate from my computer to a remote device using an rs232 port. I have successfully managed to get incoming data and process it, but I am having problems sending data. Here's my current code:


COleVariant aVar;
OLECHAR aArray[270];

aArray[0]='A';
aArray[1]='B';
aArray[2]='C';
aArray[3]='!';
aArray[4]= 26;
aVar = aArray;
CommControl12.put_Output(aVar);

I am using visual studio 9, and MSComm is imported as an active X control. The program compiles and runs, but no data is sent (this was checked by sending data to another computer). Any help would be appreciated!