Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDisable the menu Pin
Anu_Bala27-Apr-06 0:45
Anu_Bala27-Apr-06 0:45 
QuestionComparing colors-newbie Pin
antonaras_marcou27-Apr-06 0:05
antonaras_marcou27-Apr-06 0:05 
AnswerRe: Comparing colors-newbie Pin
Cedric Moonen27-Apr-06 0:14
Cedric Moonen27-Apr-06 0:14 
GeneralRe: Comparing colors-newbie Pin
antonaras_marcou27-Apr-06 0:23
antonaras_marcou27-Apr-06 0:23 
GeneralRe: Comparing colors-newbie Pin
Stephen Hewitt27-Apr-06 0:51
Stephen Hewitt27-Apr-06 0:51 
GeneralRe: Comparing colors-newbie Pin
antonaras_marcou27-Apr-06 2:49
antonaras_marcou27-Apr-06 2:49 
GeneralRe: Comparing colors-newbie Pin
BadKarma27-Apr-06 5:11
BadKarma27-Apr-06 5:11 
GeneralRe: Comparing colors-newbie Pin
antonaras_marcou27-Apr-06 8:07
antonaras_marcou27-Apr-06 8:07 
GeneralRe: Comparing colors-newbie Pin
Stephen Hewitt27-Apr-06 13:54
Stephen Hewitt27-Apr-06 13:54 
QuestionRe: Comparing colors-newbie Pin
David Crow27-Apr-06 3:10
David Crow27-Apr-06 3:10 
Questionproblem in triggering events Pin
rajeev8227-Apr-06 0:00
rajeev8227-Apr-06 0:00 
AnswerRe: problem in triggering events Pin
Cedric Moonen27-Apr-06 0:12
Cedric Moonen27-Apr-06 0:12 
AnswerRe: problem in triggering events Pin
Roger Stoltz27-Apr-06 0:34
Roger Stoltz27-Apr-06 0:34 
GeneralRe: problem in triggering events Pin
rajeev8227-Apr-06 0:54
rajeev8227-Apr-06 0:54 
AnswerRe: problem in triggering events Pin
Roger Stoltz27-Apr-06 1:00
Roger Stoltz27-Apr-06 1:00 
GeneralRe: problem in triggering events Pin
rajeev8227-Apr-06 1:19
rajeev8227-Apr-06 1:19 
AnswerRe: problem in triggering events Pin
Roger Stoltz27-Apr-06 2:50
Roger Stoltz27-Apr-06 2:50 
Well, given that I've understood your problem correctly I suggest the following:

1. Set up interface sinks and create objects necessary.
2. Create a worker thread that gathers the data from the demodulator and put the data in a queue which is read from...
3. a second worker thread that feeds the sound card and waits for an event which gets signalled when your app is notified using WFMO().
4. Marshal needed interfaces to your threads before you unleash them. (Create them suspended.)

This will keep the GUI responsive since the main thread is not blocked.
You should also get the notification in the main thread.

Read JoeNewcomer's article[^] about multithreading if you are unfamiliar with the subject.

Hope this helps
--
Roger


It's suppose to be hard, otherwise anybody could do it!
QuestionWaiting for the thread end Pin
gomez_a26-Apr-06 23:44
gomez_a26-Apr-06 23:44 
AnswerRe: Waiting for the thread end Pin
Roger Stoltz27-Apr-06 0:38
Roger Stoltz27-Apr-06 0:38 
AnswerRe: Waiting for the thread end Pin
Stephen Hewitt27-Apr-06 0:41
Stephen Hewitt27-Apr-06 0:41 
Questionhow to write a log file Pin
vuyyuru26-Apr-06 22:50
vuyyuru26-Apr-06 22:50 
AnswerRe: how to write a log file Pin
Cedric Moonen26-Apr-06 22:54
Cedric Moonen26-Apr-06 22:54 
GeneralRe: how to write a log file Pin
vuyyuru27-Apr-06 1:53
vuyyuru27-Apr-06 1:53 
GeneralRe: how to write a log file Pin
Cedric Moonen27-Apr-06 2:02
Cedric Moonen27-Apr-06 2:02 
GeneralRe: how to write a log file Pin
kakan27-Apr-06 2:48
professionalkakan27-Apr-06 2:48 

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.