|
-
July 20th, 2009, 11:37 AM
#1
Serial Communication using MSCOMM32
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|