Solved

Serial Communication with MFC

Posted on 1998-05-03
1
295 Views
Last Modified: 2013-11-19
I'm doing a project for win95/NT that will need to handle some i/o on a serial port. Thus far I have been unable to find any books, web pages, or source code showing how to do this with MFC. Pointers to some good resources and/or source code appreciated.
0
Comment
Question by:beyondrob
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 50 total points
ID: 1306274
One solution is to use the MSCOMM32 control that ships with Visual C++. See the VCTERM sample in the product; it demonstrates the control quite aggressively.

Another solution is to buy a third party library (or control).  Greenleaf has been in the communications library business longer than anyone in the PC market.  If you can't afford a library, you might want to cull the web for freeware libraries that people have written.

A third approach is to use the WIN32 APIs directly. There are a few samples that show how, like the MTTTY sample in the knowledge base or the TTY sample in the SDK.  

.B ekiM

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now