Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: old c++ compiler Pin
Monty220-Dec-03 19:50
Monty220-Dec-03 19:50 
GeneralRe: old c++ compiler Pin
mhmoud rawas20-Dec-03 19:59
mhmoud rawas20-Dec-03 19:59 
GeneralRe: old c++ compiler Pin
ZoogieZork20-Dec-03 19:55
ZoogieZork20-Dec-03 19:55 
GeneralRe: old c++ compiler Pin
mhmoud rawas20-Dec-03 20:00
mhmoud rawas20-Dec-03 20:00 
GeneralProblems with PRINTING Pin
Srdjan Mladenovic20-Dec-03 15:19
Srdjan Mladenovic20-Dec-03 15:19 
GeneralMDI Question Pin
Anonymous20-Dec-03 14:27
Anonymous20-Dec-03 14:27 
GeneralRe: MDI Question Pin
Robert A. T. Káldy20-Dec-03 23:38
Robert A. T. Káldy20-Dec-03 23:38 
GeneralCallback question Pin
Steve Messer20-Dec-03 12:41
Steve Messer20-Dec-03 12:41 
This is involved so I will try to describe my question as succinctly as possible.

I have an application that has a thread and a Callback function.

First there is a Reader thread which reads input from a serial port. It has two main functions.

1) Read data from the serial port if in normal operating mode.
2) Record key presses form the remote if in record mode.

Second there is a Callback function ConfigProc which is associated with a dialog that when active tells the Reader thread to go into record mode and once dismissed tells the Reader thread to go back to normal operation ( waiting for key presses from the remote control ). The Config dialog has buttons that when pressed put the reader thread in record mode and it stays that way until you press a button on your remote control.

My problem is this. I want to use a list control to store the commands I receive from the remote control instead of a config dialog with buttons on it. How do I now get the functionality of the Callback function ( ConfigProc ) without a dialog to associate it to.

My only idea is to have a learn button that when pressed starts a thread to do the functionality that was previously handled by the ConfigProc that was associated to the Config dialog. And then a stop button which will stop the thread.

What is the correct way to handle this situation?

Thanks, Steve


GeneralRe: Callback question Pin
valikac21-Dec-03 4:50
valikac21-Dec-03 4:50 
GeneralRe: Callback question Pin
Steve Messer21-Dec-03 8:36
Steve Messer21-Dec-03 8:36 
Generalserious *.dll/virus issue Pin
Anonymous20-Dec-03 10:45
Anonymous20-Dec-03 10:45 
GeneralRe: serious *.dll/virus issue Pin
PJ Arends20-Dec-03 12:23
professionalPJ Arends20-Dec-03 12:23 
GeneralRe: serious *.dll/virus issue Pin
Anonymous20-Dec-03 13:37
Anonymous20-Dec-03 13:37 
GeneralRe: serious *.dll/virus issue Pin
Anonymous20-Dec-03 13:52
Anonymous20-Dec-03 13:52 
GeneralRe: serious *.dll/virus issue Pin
Roger Wright20-Dec-03 14:04
professionalRoger Wright20-Dec-03 14:04 
GeneralRe: serious *.dll/virus issue Pin
David Crow22-Dec-03 3:56
David Crow22-Dec-03 3:56 
GeneralNewbie Question: C vs C++ Pin
tguzella20-Dec-03 9:42
tguzella20-Dec-03 9:42 
GeneralRe: Newbie Question: C vs C++ Pin
Tim Smith20-Dec-03 9:53
Tim Smith20-Dec-03 9:53 
GeneralRe: Newbie Question: C vs C++ Pin
markkuk20-Dec-03 12:08
markkuk20-Dec-03 12:08 
GeneralRe: Newbie Question: C vs C++ Pin
John R. Shaw20-Dec-03 16:19
John R. Shaw20-Dec-03 16:19 
GeneralRe: Newbie Question: C vs C++ Pin
Anonymous20-Dec-03 18:25
Anonymous20-Dec-03 18:25 
GeneralRe: Newbie Question: C vs C++ Pin
ZoogieZork20-Dec-03 19:50
ZoogieZork20-Dec-03 19:50 
GeneralRe: Newbie Question: C vs C++ Pin
John M. Drescher21-Dec-03 7:32
John M. Drescher21-Dec-03 7:32 
GeneralRe: Newbie Question: C vs C++ Pin
tguzella22-Dec-03 5:00
tguzella22-Dec-03 5:00 
GeneralRe: Newbie Question: C vs C++ Pin
John M. Drescher22-Dec-03 6:33
John M. Drescher22-Dec-03 6:33 

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.