Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CListCtrl Pin
hero19953-May-07 5:16
hero19953-May-07 5:16 
GeneralRe: CListCtrl Pin
David Crow3-May-07 8:41
David Crow3-May-07 8:41 
Questionprogress bar on list view Pin
anu jaggi2-May-07 17:52
anu jaggi2-May-07 17:52 
QuestionSerialize in DLL Pin
vibindia2-May-07 17:37
vibindia2-May-07 17:37 
AnswerRe: Serialize in DLL Pin
Arman S.2-May-07 20:30
Arman S.2-May-07 20:30 
QuestionRe: Serialize in DLL Pin
Mark Salsbery3-May-07 6:50
Mark Salsbery3-May-07 6:50 
QuestionWaveIn API and MFC - need some theory background help Pin
Vaclav_2-May-07 17:34
Vaclav_2-May-07 17:34 
AnswerRe: WaveIn API and MFC - need some theory background help Pin
Mark Salsbery3-May-07 7:15
Mark Salsbery3-May-07 7:15 
Vaclav_Sal wrote:
The key is that the MFC main thread creates a new thread for processing.


I'm not sure what you mean here. An MFC app (process) starts with one thread, wrapped by the
CWinApp class.

Vaclav_Sal wrote:
The CALLBACK waveInProc function passes control to this new thread that waits for data to arrive.


No. The system is capturing waveform data on another thread. On that thread your callback
function is called.

Vaclav_Sal wrote:
My question - is CALLBACK really a glorified hardware interrupt?


No. A CALLBACK is a function/method in your code that is called by the system. This could occur
on any thread, depending on what the callback is being used for (this is always documented).

Vaclav_Sal wrote:
WM_ messages are useless - won't go “cross thread”.


Not true. WM_ messages can be sent/posted across threads. There is a difference between sending
and posting - study the docs for SendMessage/PostMessage. Messages to a window on another thread
go to the message queue associated with the thread that the window was created on.

Vaclav_Sal wrote:
It seems that the clean way to accomplish this is to go multithreading


The multimedia system does the multithreading for you. All you need to do is put the data
somewhere when you receive notification in your callback. If you are doing something with that
data in another thread during the recording, then you need to synchronize access to the data -
usng thread synchronization objects works best.

Vaclav_Sal wrote:
I have looked at using templates and found the method too convoluted.


Using templates for what?

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: WaveIn API and MFC - need some theory background help Pin
Vaclav_3-May-07 7:34
Vaclav_3-May-07 7:34 
GeneralRe: WaveIn API and MFC - need some theory background help Pin
Mark Salsbery3-May-07 7:40
Mark Salsbery3-May-07 7:40 
GeneralRe: WaveIn API and MFC - need some theory background help Pin
Vaclav_3-May-07 17:36
Vaclav_3-May-07 17:36 
GeneralRe: WaveIn API and MFC - need some theory background help Pin
Mark Salsbery4-May-07 4:34
Mark Salsbery4-May-07 4:34 
Questionwide character (unicode) and multi-byte character Pin
George_George2-May-07 17:02
George_George2-May-07 17:02 
AnswerRe: wide character (unicode) and multi-byte character [modified] Pin
Mark Salsbery3-May-07 7:33
Mark Salsbery3-May-07 7:33 
GeneralRe: wide character (unicode) and multi-byte character Pin
George_George4-May-07 2:26
George_George4-May-07 2:26 
GeneralRe: wide character (unicode) and multi-byte character Pin
Mark Salsbery4-May-07 5:06
Mark Salsbery4-May-07 5:06 
GeneralRe: wide character (unicode) and multi-byte character Pin
George_George4-May-07 20:49
George_George4-May-07 20:49 
GeneralRe: wide character (unicode) and multi-byte character Pin
Mark Salsbery5-May-07 5:52
Mark Salsbery5-May-07 5:52 
GeneralRe: wide character (unicode) and multi-byte character Pin
George_George6-May-07 21:40
George_George6-May-07 21:40 
QuestionHow to get a mini dump? Pin
Super Lloyd2-May-07 13:32
Super Lloyd2-May-07 13:32 
AnswerRe: How to get a mini dump? Pin
Peter Weyzen2-May-07 15:23
Peter Weyzen2-May-07 15:23 
GeneralRe: How to get a mini dump? [modified] Pin
Super Lloyd2-May-07 15:49
Super Lloyd2-May-07 15:49 
GeneralRe: How to get a mini dump? Pin
Super Lloyd2-May-07 17:20
Super Lloyd2-May-07 17:20 
QuestionWrappers Pin
huehue2-May-07 9:20
huehue2-May-07 9:20 
AnswerRe: Wrappers Pin
Mark Salsbery2-May-07 9:31
Mark Salsbery2-May-07 9:31 

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.