Click here to Skip to main content
16,013,548 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: image display Pin
_tasleem17-Mar-06 1:42
_tasleem17-Mar-06 1:42 
QuestionCTime 32 bit/64 bit Pin
rwilmink16-Mar-06 22:08
rwilmink16-Mar-06 22:08 
QuestionHelp needed to launch each of the system tray icons present Pin
giftsana16-Mar-06 21:42
giftsana16-Mar-06 21:42 
AnswerRe: Help needed to launch each of the system tray icons present Pin
ThatsAlok17-Mar-06 0:44
ThatsAlok17-Mar-06 0:44 
GeneralRe: Help needed to launch each of the system tray icons present Pin
giftsana21-Mar-06 16:39
giftsana21-Mar-06 16:39 
QuestionCould someone help me? Pin
Syouki_kou16-Mar-06 21:23
Syouki_kou16-Mar-06 21:23 
AnswerRe: Could someone help me? Pin
toxcct16-Mar-06 21:56
toxcct16-Mar-06 21:56 
QuestionProblem with wave audio input device Pin
Remco Hoogenboezem16-Mar-06 21:13
Remco Hoogenboezem16-Mar-06 21:13 
Hello everybody,

For my project I need to record some data from the wave audio inut device.
To do this I have created a class CWaveIn wich simply encapsulate the standard windows calls waveInOpen() waveInClose() waveInAddBuffer() etc...
When I open the wave audio input device I use the WAVE_MAPPER flag. I use a dedicated thread to process the driver messages. I only process the WIM_DATA driver messages. The dedicated thread calls a user defined callback function to store the signal to disk and do some computations on the data. These computations are CPU expensive so it is possible that at some point in time there are more than one WIM_DATA messages on the message queue of the dedicated thread.

In my project I need to mark the first and the last waveheader in a serie of waveheaders with a start and stop time respectivly. Oke to mark the first waveheader is easy just simply set a flag when the user presses the start button and clear the flag in the callback function. But to mark the last waveheader is a lot more complicated. I use the waveInGetPosition() function directly after the user stopped the wave audio input device. (All waveheaders are of the same size) Devide this number by the size of the waveheaders and voila you have got the last waveheader. (Since recording started)

Oke this works perfectly for large waveheaders. (0.1 seconds and bigger) But when I use small waveheaders I lose one WIM_DATA message in a series of WIM_DATA messages? The current position (waveinGetPosition) is one wavheader ahead of the number of waveheaders I ve received from the device driver.

Thank you Smile | :)
QuestionBSCMAKE: error BK1503 : cannot write to file 'TouchDbg/test.bsc' Pin
itkid16-Mar-06 20:38
itkid16-Mar-06 20:38 
AnswerRe: BSCMAKE: error BK1503 : cannot write to file 'TouchDbg/test.bsc' Pin
Nibu babu thomas16-Mar-06 20:40
Nibu babu thomas16-Mar-06 20:40 
GeneralRe: BSCMAKE: error BK1503 : cannot write to file 'TouchDbg/test.bsc' Pin
itkid16-Mar-06 21:06
itkid16-Mar-06 21:06 
GeneralRe: BSCMAKE: error BK1503 : cannot write to file 'TouchDbg/test.bsc' Pin
Nibu babu thomas16-Mar-06 21:09
Nibu babu thomas16-Mar-06 21:09 
QuestionTo convert BYTE type data to a WORD type Pin
chetan21018316-Mar-06 19:51
chetan21018316-Mar-06 19:51 
AnswerRe: To convert BYTE type data to a WORD type Pin
kakan16-Mar-06 20:24
professionalkakan16-Mar-06 20:24 
AnswerRe: To convert BYTE type data to a WORD type Pin
Johann Gerell16-Mar-06 21:59
Johann Gerell16-Mar-06 21:59 
QuestionClear my desktop Pin
Aqueel16-Mar-06 19:49
Aqueel16-Mar-06 19:49 
AnswerRe: Clear my desktop Pin
Nibu babu thomas16-Mar-06 20:48
Nibu babu thomas16-Mar-06 20:48 
GeneralRe: Clear my desktop Pin
Aqueel17-Mar-06 17:17
Aqueel17-Mar-06 17:17 
AnswerRe: Clear my desktop Pin
ThatsAlok17-Mar-06 0:46
ThatsAlok17-Mar-06 0:46 
GeneralRe: Clear my desktop Pin
Aqueel17-Mar-06 17:20
Aqueel17-Mar-06 17:20 
Questiontime to execute instructions Pin
Aqueel16-Mar-06 19:45
Aqueel16-Mar-06 19:45 
AnswerRe: time to execute instructions Pin
Naveen16-Mar-06 20:17
Naveen16-Mar-06 20:17 
AnswerRe: time to execute instructions Pin
ThatsAlok17-Mar-06 0:49
ThatsAlok17-Mar-06 0:49 
Questionhttp port Pin
Girish60116-Mar-06 19:31
Girish60116-Mar-06 19:31 
Questionapp with non-rectangular window Pin
blue_rabbit16-Mar-06 19:11
blue_rabbit16-Mar-06 19:11 

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.