Click here to Skip to main content
15,891,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hardcoded CString file path Pin
al250028-Jan-10 11:31
al250028-Jan-10 11:31 
AnswerRe: Hardcoded CString file path Pin
Richard MacCutchan28-Jan-10 10:18
mveRichard MacCutchan28-Jan-10 10:18 
Questionerror C2679: binary '>>' : no operator found Pin
mlchavez28-Jan-10 8:52
mlchavez28-Jan-10 8:52 
AnswerRe: error C2679: binary '>>' : no operator found Pin
Richard MacCutchan28-Jan-10 9:11
mveRichard MacCutchan28-Jan-10 9:11 
GeneralRe: error C2679: binary '>>' : no operator found Pin
mlchavez28-Jan-10 9:39
mlchavez28-Jan-10 9:39 
GeneralRe: error C2679: binary '>>' : no operator found Pin
Richard MacCutchan28-Jan-10 9:46
mveRichard MacCutchan28-Jan-10 9:46 
AnswerRe: error C2679: binary '>>' : no operator found Pin
CODEPC28-Jan-10 10:18
CODEPC28-Jan-10 10:18 
Questionplaying .wav files using double buffering approach Pin
Danzy8328-Jan-10 8:45
Danzy8328-Jan-10 8:45 
I am programming a console application that plays .wav files. I have set the members of the WAVEFORMATEX to the values of the read file. As a try, I set the lpData member of the WAVEHDR member to the buffer where the file was read into and the dwBufferLength to the size of the file. I have also prepared the WAVEHDR structure. This plays the file when I call the Sleep function for some seconds (Not the best approach) after calling waveOutWrite. I have read that files should be played using double buffering approach but I don't know how this is implemented. I used a callback function in the waveOutWrite function and I am also able to trap WOM_DONE and WOM_OPEN messages.

Please I need help on how this double buffering sheme is implemented. I have read that when one buffer is being sent, the other is being prepared but I don't know how to do this. Some tutorials may help to get the idea.

Please help me.
AnswerRe: playing .wav files using double buffering approach Pin
enhzflep29-Jan-10 20:29
enhzflep29-Jan-10 20:29 
QuestionUsing Google Map in MFC application? Pin
CODEPC28-Jan-10 7:22
CODEPC28-Jan-10 7:22 
GeneralRe: Using Google Map in MFC application? Pin
David Crow28-Jan-10 8:53
David Crow28-Jan-10 8:53 
AnswerRe: Using Google Map in MFC application? Pin
loyal ginger28-Jan-10 10:07
loyal ginger28-Jan-10 10:07 
GeneralRe: Using Google Map in MFC application? Pin
CODEPC28-Jan-10 11:40
CODEPC28-Jan-10 11:40 
AnswerRe: Using Google Map in MFC application? Pin
Nemanja Trifunovic28-Jan-10 10:29
Nemanja Trifunovic28-Jan-10 10:29 
QuestionSyntax problem with "" Pin
gregarion28-Jan-10 3:50
gregarion28-Jan-10 3:50 
AnswerRe: Syntax problem with "" Pin
Covean28-Jan-10 3:55
Covean28-Jan-10 3:55 
QuestionDLL, EXE, dialog question Pin
DaveHitchman28-Jan-10 2:58
DaveHitchman28-Jan-10 2:58 
AnswerRe: DLL, EXE, dialog question Pin
Richard MacCutchan28-Jan-10 3:07
mveRichard MacCutchan28-Jan-10 3:07 
QuestionActiveX Controls. Pin
ashwath197928-Jan-10 2:28
ashwath197928-Jan-10 2:28 
QuestionInputing variable into string.find Pin
gregarion28-Jan-10 2:25
gregarion28-Jan-10 2:25 
QuestionRe: Inputing variable into string.find Pin
CPallini28-Jan-10 2:38
mveCPallini28-Jan-10 2:38 
AnswerRe: Inputing variable into string.find Pin
gregarion28-Jan-10 2:53
gregarion28-Jan-10 2:53 
GeneralRe: Inputing variable into string.find Pin
CPallini28-Jan-10 3:35
mveCPallini28-Jan-10 3:35 
AnswerRe: Inputing variable into string.find Pin
David Crow28-Jan-10 3:35
David Crow28-Jan-10 3:35 
AnswerRe: Inputing variable into string.find Pin
David Crow28-Jan-10 3:32
David Crow28-Jan-10 3:32 

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.