469,323 Members | 1,256 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

Help for Serial communication

Hallo everybody:

I have some questions about Seiral communication with GPS. I am using the "Serial Port" in Windows application form of Visual studio 2005.

In one second I receive several messages from port. each message has different number of bytes. I know the time in one second when the data arrive. How can I make sure I receive correctly?

my codes is like this:

Port2->Write(Oa,0,18); //after this command, i get messages in one second

is that correct?

And how can I check the data i have received? I only find the "textbox->text=Port2->Readnewline()". But I can only display string type. How can i display one wchar? such as Oa_responce1(5)?

Thanks a lot!!!
Nov 27 '06 #1
0 770

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.