Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pointer/address to CFormView Pin
Richard MacCutchan1-May-10 21:27
mveRichard MacCutchan1-May-10 21:27 
QuestionMulti Threading for Graphic engines Pin
silversamand1-May-10 18:53
silversamand1-May-10 18:53 
AnswerRe: Multi Threading for Graphic engines Pin
Software_Developer1-May-10 21:02
Software_Developer1-May-10 21:02 
AnswerRe: Multi Threading for Graphic engines Pin
Michel Godfroid2-May-10 7:17
Michel Godfroid2-May-10 7:17 
GeneralRe: Multi Threading for Graphic engines Pin
ThatsAlok2-May-10 20:05
ThatsAlok2-May-10 20:05 
JokeRe: Multi Threading for Graphic engines Pin
Michel Godfroid2-May-10 20:08
Michel Godfroid2-May-10 20:08 
Questionhow to convert pcm 16 to pcm 8? Pin
wgh168991-May-10 17:24
wgh168991-May-10 17:24 
AnswerRe: how to convert pcm 16 to pcm 8? Pin
Software_Developer1-May-10 19:42
Software_Developer1-May-10 19:42 
| how to convert above form to following form?
|
| WAVEFORMATEX in_wfx;
| in_wfx.wFormatTag = WAVE_FORMAT_PCM;
| in_wfx.nChannels =1;
| in_wfx.nSamplesPerSec =8000;
| in_wfx.nAvgBytesPerSec =16000;
| in_wfx.nBlockAlign =2;
| in_wfx.wBitsPerSample =16;
| in_wfx.cbSize = 0;
|
|
|
| WAVEFORMATEX out_wfx;
| out_wfx.wFormatTag = WAVE_FORMAT_PCM;
| out_wfx.nChannels =1;
| out_wfx.nSamplesPerSec =8000;
| out_wfx.nAvgBytesPerSec =8000;
| out_wfx.nBlockAlign =1;
| out_wfx.wBitsPerSample =8;
| out_wfx.cbSize = 0;
|

The nAvgBytesPerSec and nBlockAlign should be calculated:

out_wfx.nBlockAlign = out_wfx.nChannels * out_wfx.wBitsPerSample / 8;
out_wfx.AvgBytesPerSec = out_wfx.nBlockAlign * out_wfx.nSamplesPerSec;

out_wfx.nAvgBytesPerSec = out_wfx.nSamplesPerSec * out_wfx.nBlockAlign;


...
QuestionAppending Data to End of File Pin
Fareed Rizkalla1-May-10 13:32
Fareed Rizkalla1-May-10 13:32 
AnswerRe: Appending Data to End of File Pin
Joe Woodbury1-May-10 14:40
professionalJoe Woodbury1-May-10 14:40 
QuestionWriteFile not working! Pin
Fareed Rizkalla1-May-10 7:29
Fareed Rizkalla1-May-10 7:29 
AnswerRe: WriteFile not working! Pin
Luc Pattyn1-May-10 7:38
sitebuilderLuc Pattyn1-May-10 7:38 
GeneralRe: WriteFile not working! Pin
Rajesh R Subramanian1-May-10 7:41
professionalRajesh R Subramanian1-May-10 7:41 
GeneralRe: WriteFile not working! Pin
Luc Pattyn1-May-10 8:22
sitebuilderLuc Pattyn1-May-10 8:22 
AnswerRe: WriteFile not working! PinPopular
Rajesh R Subramanian1-May-10 7:40
professionalRajesh R Subramanian1-May-10 7:40 
QuestionSMTP client Pin
mesajflaviu1-May-10 6:28
mesajflaviu1-May-10 6:28 
AnswerRe: SMTP client Pin
Software_Developer1-May-10 7:14
Software_Developer1-May-10 7:14 
GeneralRe: SMTP client [modified] Pin
mesajflaviu1-May-10 7:27
mesajflaviu1-May-10 7:27 
GeneralRe: use Visual Studio's debugger and analyse the conversation between your SMTP server and the client Pin
Software_Developer1-May-10 8:18
Software_Developer1-May-10 8:18 
GeneralRe: use Visual Studio's debugger and analyse the conversation between your SMTP server and the client Pin
mesajflaviu2-May-10 8:46
mesajflaviu2-May-10 8:46 
QuestionHighlighting a node of tree while it looses focus Pin
rahul.kulshreshtha30-Apr-10 23:41
rahul.kulshreshtha30-Apr-10 23:41 
AnswerRe: Highlighting a node of tree while it looses focus Pin
Gary R. Wheeler1-May-10 1:53
Gary R. Wheeler1-May-10 1:53 
GeneralRe: Highlighting a node of tree while it looses focus Pin
rahul.kulshreshtha1-May-10 4:06
rahul.kulshreshtha1-May-10 4:06 
GeneralRe: Highlighting a node of tree while it looses focus Pin
Gary R. Wheeler1-May-10 4:29
Gary R. Wheeler1-May-10 4:29 
Questionget c0239 error: waitforsingleobject: is not a member of global namespace Pin
Gregory Hartmann30-Apr-10 12:43
Gregory Hartmann30-Apr-10 12:43 

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.