Click here to Skip to main content
15,915,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to do fast Zip in c++? Pin
002comp8-Aug-10 21:11
002comp8-Aug-10 21:11 
GeneralRe: How to do fast Zip in c++? Pin
002comp9-Aug-10 0:16
002comp9-Aug-10 0:16 
GeneralRe: How to do fast Zip in c++? Pin
Moak10-Aug-10 13:13
Moak10-Aug-10 13:13 
QuestionHow to check the NULL iterator? Pin
DevelopmentNoob8-Aug-10 17:26
DevelopmentNoob8-Aug-10 17:26 
AnswerRe: How to check the NULL iterator? [modified] PinPopular
Niklas L8-Aug-10 19:44
Niklas L8-Aug-10 19:44 
AnswerRe: How to check the NULL iterator? Pin
Moak8-Aug-10 21:39
Moak8-Aug-10 21:39 
AnswerRe: How to check the NULL iterator? Pin
Aescleal8-Aug-10 22:22
Aescleal8-Aug-10 22:22 
QuestionwaveOutOpen returning no message?? Pin
AmbiguousName8-Aug-10 2:45
AmbiguousName8-Aug-10 2:45 
hello guys...im havinf a problum with waveOutOpen. When I call this function, it returns no message, upon debugging the MMRESULT variable was showing a value of 11...here is the code
     WAVEFORMATEX           _oFormat;
     LPWAVEFORMATEX         _pFormat = NULL;
     PCHAR          _pWaveData[4];
     LPWAVEHDR              _pWaveHeader[4];
     LPHWAVEOUT     _hOutputDevice = NULL;
     DWORD          _nAlignedBufferSize = 0;
     MMRESULT       rc = 0;

_pFormat = &_oFormat;
_pFormat->wFormatTag = WAVE_FORMAT_PCM;
_pFormat->nChannels = 1;
_pFormat->nSamplesPerSec = 8000;
_pFormat->wBitsPerSample = 8;
_pFormat->nBlockAlign = 1;
_pFormat->nAvgBytesPerSec = 8000;
_pFormat->cbSize = 0;

//open suitable device for output(input or outpur)
rc = waveOutOpen(_hOutputDevice, WAVE_MAPPER, _pFormat, (DWORD) &waveOutProc, 0, CALLBACK_FUNCTION);
if (rc==MMSYSERR_NOERROR)
    MessageBox(NULL,"device opened..","",NULL);
else if (rc==MMSYSERR_ALLOCATED)
    MessageBox(NULL,"device already allocated","",NULL);
else if(rc==MMSYSERR_BADDEVICEID)
    MessageBox(NULL,"bad device id","",NULL);
else if(rc==MMSYSERR_NOMEM)
    MessageBox(NULL,"no memory","",NULL);
else if(rc==MMSYSERR_NODRIVER)
    MessageBox(NULL,"no driver","",NULL);
else if (rc==WAVERR_BADFORMAT)
    MessageBox(NULL,"bad format","",NULL);
else if(rc==WAVERR_SYNC)
    MessageBox(NULL,"not syncrnoized","",NULL);

what can be the problum?? Confused | :confused:
AnswerRe: waveOutOpen returning no message?? Pin
Richard MacCutchan8-Aug-10 2:54
mveRichard MacCutchan8-Aug-10 2:54 
GeneralRe: waveOutOpen returning no message?? Pin
AmbiguousName8-Aug-10 4:30
AmbiguousName8-Aug-10 4:30 
GeneralRe: waveOutOpen returning no message?? Pin
Luc Pattyn8-Aug-10 4:58
sitebuilderLuc Pattyn8-Aug-10 4:58 
GeneralRe: waveOutOpen returning no message?? Pin
Richard MacCutchan8-Aug-10 5:31
mveRichard MacCutchan8-Aug-10 5:31 
QuestionAvoiding Resource Conflicts in MFC Extension DLLs Pin
softwaremonkey7-Aug-10 21:07
softwaremonkey7-Aug-10 21:07 
AnswerRe: Avoiding Resource Conflicts in MFC Extension DLLs Pin
Niklas L7-Aug-10 22:27
Niklas L7-Aug-10 22:27 
GeneralRe: Avoiding Resource Conflicts in MFC Extension DLLs Pin
softwaremonkey8-Aug-10 4:21
softwaremonkey8-Aug-10 4:21 
QuestionError :: C1061 compiler limit : blocks nested too deeply Pin
Le@rner6-Aug-10 22:31
Le@rner6-Aug-10 22:31 
AnswerRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
Code-o-mat6-Aug-10 22:52
Code-o-mat6-Aug-10 22:52 
GeneralRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
Le@rner6-Aug-10 23:23
Le@rner6-Aug-10 23:23 
GeneralRe: Error :: C1061 compiler limit : blocks nested too deeply [modified] Pin
Richard MacCutchan7-Aug-10 2:39
mveRichard MacCutchan7-Aug-10 2:39 
GeneralRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
MuraliKrishnaP7-Aug-10 3:07
MuraliKrishnaP7-Aug-10 3:07 
AnswerRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
Luc Pattyn7-Aug-10 11:02
sitebuilderLuc Pattyn7-Aug-10 11:02 
GeneralRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
David Crow7-Aug-10 15:58
David Crow7-Aug-10 15:58 
AnswerRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
Moak6-Aug-10 23:14
Moak6-Aug-10 23:14 
QuestionConnectEx fails Pin
followait6-Aug-10 14:25
followait6-Aug-10 14:25 
AnswerRe: ConnectEx fails Pin
Richard Andrew x646-Aug-10 15:06
professionalRichard Andrew x646-Aug-10 15:06 

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.