Click here to Skip to main content
16,011,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setting an edit controls style Pin
Andrew Quinn AUS19-May-04 9:33
Andrew Quinn AUS19-May-04 9:33 
GeneralRe: Setting an edit controls style Pin
monrobot1319-May-04 9:33
monrobot1319-May-04 9:33 
GeneralRe: Setting an edit controls style Pin
grigsoft19-May-04 9:04
grigsoft19-May-04 9:04 
GeneralRe: Setting an edit controls style Pin
David Crow19-May-04 9:19
David Crow19-May-04 9:19 
GeneralRe: Setting an edit controls style Pin
David Crow19-May-04 9:24
David Crow19-May-04 9:24 
GeneralRe: Setting an edit controls style Pin
monrobot1319-May-04 9:30
monrobot1319-May-04 9:30 
GeneralRe: Got It Working Pin
monrobot1319-May-04 9:40
monrobot1319-May-04 9:40 
GeneralWaitCommEvent and GetCommMask (and overlapping) Pin
AnotherProgrammer19-May-04 7:51
AnotherProgrammer19-May-04 7:51 
Thanks for the help on my earlier problem.. I have now undertaken rewriting the serial portion of my code to use CreateFile and the like. It's all a bit complicated though, and being new to this, I have a few questions. It starts with overlapping, and also involves WaitCommEvent and GetCommMask. I did a search on the topics and read a few articles that were found, but while they cleared a few things up, they still left me with a few questions unanswered.

First, I understand that SetCommMask allows you to screen for only a few of the events. But after calling SetCommMask to look for only what you want, how does one screen for these events and process them appropriately? I know you can use WaitCommEvent, but in that case, why would you even need GetCommMask? I also need to use overlapping for this program, but I'm not sure how to implement it or even what it actually is (do I need to use the overlapped structure at all?).

I was able to find this piece of example code on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/monitoring_communications_events.asp

I do not fully understand how it operates, though.

Also, this article was very helpful, to a point: http://www.codeproject.com/system/serial_com.asp

Where I got lost was the huge block of code where he uses the OVERLAPPED structure and the Threadfn function, after which he writes "If you understood the above code , you will understand the whole of this article and the source code provided." Gulp.

As always, the help is very much appreciated.
GeneralQuick Follow up - way simpler question Pin
AnotherProgrammer19-May-04 8:11
AnotherProgrammer19-May-04 8:11 
GeneralRe: Quick Follow up - way simpler question Pin
Paul Ranson19-May-04 8:48
Paul Ranson19-May-04 8:48 
GeneralRe: Quick Follow up - way simpler question Pin
AnotherProgrammer20-May-04 3:30
AnotherProgrammer20-May-04 3:30 
GeneralRe: WaitCommEvent and GetCommMask (and overlapping) Pin
AnotherProgrammer20-May-04 6:23
AnotherProgrammer20-May-04 6:23 
GeneralCheck if application is running Pin
Mathias S.19-May-04 7:42
Mathias S.19-May-04 7:42 
GeneralRe: Check if application is running Pin
Renjith Ramachandran19-May-04 8:04
Renjith Ramachandran19-May-04 8:04 
GeneralRe: Check if application is running Pin
David Crow19-May-04 8:15
David Crow19-May-04 8:15 
GeneralExe Wrapper Pin
Anthony988719-May-04 6:48
Anthony988719-May-04 6:48 
GeneralRe: Exe Wrapper Pin
David Crow19-May-04 7:00
David Crow19-May-04 7:00 
GeneralRe: Exe Wrapper Pin
jmkhael19-May-04 7:03
jmkhael19-May-04 7:03 
GeneralBoundsChecker errors Pin
Deian19-May-04 6:08
Deian19-May-04 6:08 
GeneralRe: BoundsChecker errors Pin
David Crow19-May-04 7:07
David Crow19-May-04 7:07 
GeneralRe: BoundsChecker errors Pin
Deian19-May-04 10:13
Deian19-May-04 10:13 
GeneralRe: BoundsChecker errors Pin
Deian19-May-04 10:18
Deian19-May-04 10:18 
GeneralRe: BoundsChecker errors Pin
David Crow19-May-04 10:28
David Crow19-May-04 10:28 
GeneralRe: BoundsChecker errors Pin
Deian19-May-04 10:36
Deian19-May-04 10:36 
GeneralRe: BoundsChecker errors Pin
John R. Shaw19-May-04 12:30
John R. Shaw19-May-04 12:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.