|
|
Subject:
Using MSComm with Borland C++ Builder
Category: Computers > Programming Asked by: entr-ga List Price: $25.00 |
Posted:
19 Jan 2005 06:36 PST
Expires: 18 Feb 2005 06:36 PST Question ID: 459800 |
I am trying to use the activeX component "MSComm" with Borland C++ Builder 6 in Windows2000. I applied the following code: MSComm1->Settings="115200,n,8,1"; MSComm1->InBufferSize=32000; MSComm1->InputMode=comInputModeBinary; MSComm1->InputLen=1; MSComm1->RThreshold=10; MSComm1->InBufferCount=0; MSComm1->NullDiscard=false; MSComm1->PortOpen=True; void ...MSComm1Comm(...) VARIANT M; for(k=0;k<MSComm1->InBufferCount;k++){ M=MSComm1->Input; X[k]=M.bVal; } X is an array of type unsigned char. When I try to retrieve the input bytes from X I get wrong data. I would like to get code that gets the correct data into X. |
|
There is no answer at this time. |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |