Solved

how to use the :SetCommState, CommConfigDialog?

Posted on 1997-12-04
4
546 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
  • 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: 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
while loop over for loop 7 115
viewing source code from eclipse 13 110
tripleUp challenge 7 86
building a service to accessed via telnet client, want colors ? 4 94
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

831 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