Solved

Serial Communication with MFC

Posted on 1998-05-03
1
306 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 Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Prevent this page from creating additional dialogs. 3 724
conditional code and condition difference 9 85
move a line in eclipse 3 109
firstChar challenge 13 133
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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