VB or VC++ to read COM port

I am trying to figure out how to make a program to read data from COM port. The data may come as a stream or as a packet.
Is there any template or function in VB, VC++ which may assist me in doing so?
Please show me the way...........
ck17Asked:
Who is Participating?
 
AzraSoundConnect With a Mentor Commented:
a small tutorial to get you started:

http://www.vbweb.co.uk/tutorials/com_ports.htm

0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
in VB you have COM Control, that enables you the read/write from com ports (with selection of com port, baud rate, protocol aso)
Check "Microsoft Comm Control" in Project Components.

Good luck
0
 
GivenRandyCommented:
VBTerm is a full source VB terminal emulator, like HyperTerminal.  It is a must-have for developers doing communications work in VB (an easy backup check):

Description:
http://msdn.microsoft.com/library/devprods/vs6/vbasic/vb98/vbprovbtermvbtermvbp.htm

Code:
http://msdn.microsoft.com/library/devprods/vs6/vbasic/vb98/samples/mscomm.exe
0
All Courses

From novice to tech pro — start learning today.