Solved

VB or VC++ to read COM port

Posted on 2000-05-16
3
162 Views
Last Modified: 2012-08-14
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...........
0
Comment
Question by:ck17
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 70 total points
ID: 2814335
a small tutorial to get you started:

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

0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2814399
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
 
LVL 9

Expert Comment

by:GivenRandy
ID: 2814405
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question