Google Answers Logo
View Question
 
Q: Using MSComm with Borland C++ Builder ( No Answer,   0 Comments )
Question  
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.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy