943,712 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 2237
  • C++ RSS
Jan 5th, 2008
0

BCB 6 TApdcomport Receive Help!!

Expand Post »
I am using BCB6 so I hope this is the right forum. I am using asyncpro's TApdComPort component for serial communication. I need to send 12 bytes and receive 22. I can send the 12 bytes using putblock(..). But I can't figure out how to reeceive my data.

Also, I would like to sync the receive and send so that I send only when I receive. I guess I can figure that out if I know how to receive.

Please help.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nu2cpp is offline Offline
20 posts
since Dec 2007
Jan 5th, 2008
1

Re: BCB 6 TApdcomport Receive Help!!

Documentation is not written by the developers for fun you know. Unless you are using fairly well known, well established APIs like the Windows API, the chances that someone who has used the library that you are using reads this post is fairly low. So when you are using a third party library, remember that there is no better help than the documentation provided with it.

In this particular case, you can use functions like GetBlock or GetChar to receive data from the buffer.
Last edited by WolfPack; Jan 5th, 2008 at 8:49 am. Reason: typo
Moderator
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
WolfPack is offline Offline
1,559 posts
since Jun 2005
Jan 5th, 2008
0

Re: BCB 6 TApdcomport Receive Help!!

Thanks for the help. I think this will probably solve my problem. But I am still a little confused about some of the stuff. There is also a trigger event that is available and is recommended. Do you know what does this even does?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nu2cpp is offline Offline
20 posts
since Dec 2007
Jan 5th, 2008
0

Re: BCB 6 TApdcomport Receive Help!!

A trigger event is something that you can use to get a notification from the library when a particular even occurs. For example, you can get a notification when new data has arrived in the buffer by using the trigger event for data reception.

Read Triggers and trigger handles under Chapter 2 of the reference guide.
Moderator
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
WolfPack is offline Offline
1,559 posts
since Jun 2005
Jan 15th, 2008
0

Re: BCB 6 TApdcomport Receive Help!!

Thanks Wolf.

That worked. Appreciate your help.

Regards
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nu2cpp is offline Offline
20 posts
since Dec 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: clear screen
Next Thread in C++ Forum Timeline: Porting from Sun C++ compiler to GNU gcc





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC