Link to home
Start Free TrialLog in
Avatar of ck17
ck17

asked on

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...........
ASKER CERTIFIED SOLUTION
Avatar of AzraSound
AzraSound
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Guy Hengel [angelIII / a3]
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
Avatar of GivenRandy
GivenRandy

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