Solved

how to use the :SetCommState, CommConfigDialog?

Posted on 1997-12-04
4
549 Views
Last Modified: 2013-11-20
I can't compile when i use the SetCommState. Where to put it and how to write Char to COM3?
0
Comment
Question by:hercules120197
[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
4 Comments
 

Author Comment

by:hercules120197
ID: 1311575
I need a sample in MSDEV4.x and more.
0
 
LVL 1

Accepted Solution

by:
IgorGrebnev earned 20 total points
ID: 1311576
Go to the stdafx.h and delete following #define
#define VC_EXTRALEAN            // Exclude rarely-used stuff from Windows headers

This VC_EXTRALEAN exclude declaration for SetCommState. Eliminate this define.
You can write character to COM with WriteFile. You careat the handle of the port with CreateFile function and supply the name of the file "COM3"
Yours, Igor
Yors Igor
0
 

Author Comment

by:hercules120197
ID: 1311577
Where can i use the comment SetCommState,CommConfigDialog.The CommConfigDialog needs a HWND and i m not understanding from which function or class.
0
 

Author Comment

by:hercules120197
ID: 1311578
Where can i use the comment SetCommState,CommConfigDialog.The CommConfigDialog needs a HWND and i m not understanding from which function or class.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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
ASCII Non-Printable characters/codes and their HTML equivalents 6 143
substring method in java 1 136
noX challenge 17 134
Increment column based of a FK 8 50
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.

749 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