Click here to Skip to main content
12,446,850 members (52,635 online)

C / C++ / MFC

 
GeneralRe: Filter the EN_KILLFOCUS message from CIPAddressCtrl Pin
Code-o-mat29-Jan-13 3:13
memberCode-o-mat29-Jan-13 3:13 
QuestionHow to create an uncompressed avi file from a matrix of data? Pin
Kiran Satish27-Jan-13 16:40
memberKiran Satish27-Jan-13 16:40 
QuestionRe: How to create an uncompressed avi file from a matrix of data? Pin
CPallini27-Jan-13 22:38
mvpCPallini27-Jan-13 22:38 
AnswerRe: How to create an uncompressed avi file from a matrix of data? Pin
Kiran Satish28-Jan-13 4:42
memberKiran Satish28-Jan-13 4:42 
AnswerRe: How to create an uncompressed avi file from a matrix of data? Pin
Chris Losinger28-Jan-13 5:10
memberChris Losinger28-Jan-13 5:10 
AnswerRe: How to create an uncompressed avi file from a matrix of data? Pin
Vaclav_Sal28-Jan-13 9:50
memberVaclav_Sal28-Jan-13 9:50 
AnswerRe: How to create an uncompressed avi file from a matrix of data? Pin
Max_Power_Up26-Feb-13 5:51
memberMax_Power_Up26-Feb-13 5:51 
QuestionWaveInOpen() returns error code 11 Pin
AmbiguousName26-Jan-13 3:14
memberAmbiguousName26-Jan-13 3:14 
hello guys... im trying to write a small recording program. But waveInOpen fails with error code 11. Here is what I am trying.
LPHWAVEIN phWaveIn = NULL;
WAVEFORMATEX pcmWaveFormat;
 
::memset(&pcmWaveFormat, 0, sizeof(WAVEFORMATEX));
 
pcmWaveFormat.wFormatTag = WAVE_FORMAT_PCM;
pcmWaveFormat.nChannels = 1;
pcmWaveFormat.nSamplesPerSec = 11025L;
pcmWaveFormat.nAvgBytesPerSec = 11025L;
pcmWaveFormat.nBlockAlign = 1;
pcmWaveFormat.wBitsPerSample = 8;
//pcmWaveFormat.cbSize = 0;

MMRESULT rResult;
rResult = IsFormatSupported(&pcmWaveFormat, WAVE_MAPPER);
if(rResult != MMSYSERR_NOERROR) return;
 
rResult = ::waveInOpen(phWaveIn, WAVE_MAPPER, &pcmWaveFormat, 0, 0, CALLBACK_NULL);
if(rResult != MMSYSERR_NOERROR)
{
    CString sErrorMsg;
 
    if(rResult == MMSYSERR_ALLOCATED)
        sErrorMsg = "Specified resource is already allocated.";
    else if(rResult == MMSYSERR_BADDEVICEID)
        sErrorMsg = "Specified device identifier is out of range.";
    else if(rResult == MMSYSERR_NODRIVER)
        sErrorMsg = "No device driver is present.";
    else if(rResult == MMSYSERR_NOMEM)
        sErrorMsg = "Unable to allocate or lock memory.";
    else if(rResult == WAVERR_BADFORMAT)
        sErrorMsg = "Attempted to open with an unsupported waveform-audio format.";
 
}
What could be wrong? Thanks

This world is going to explode due to international politics, SOON.

AnswerRe: WaveInOpen() returns error code 11 Pin
Richard MacCutchan26-Jan-13 3:28
mvpRichard MacCutchan26-Jan-13 3:28 
QuestionStuck with function pointers in C and C++ Pin
Simon Langdon25-Jan-13 0:38
memberSimon Langdon25-Jan-13 0:38 
AnswerRe: Stuck with function pointers in C and C++ Pin
CPallini25-Jan-13 0:59
mvpCPallini25-Jan-13 0:59 
AnswerRe: Stuck with function pointers in C and C++ Pin
Freak3025-Jan-13 1:08
memberFreak3025-Jan-13 1:08 
GeneralRe: Stuck with function pointers in C and C++ Pin
Simon Langdon25-Jan-13 1:41
memberSimon Langdon25-Jan-13 1:41 
GeneralRe: Stuck with function pointers in C and C++ Pin
Stefan_Lang29-Jan-13 0:02
memberStefan_Lang29-Jan-13 0:02 
GeneralRe: Stuck with function pointers in C and C++ Pin
Simon Langdon29-Jan-13 0:38
memberSimon Langdon29-Jan-13 0:38 
GeneralRe: Stuck with function pointers in C and C++ Pin
Stefan_Lang29-Jan-13 4:31
memberStefan_Lang29-Jan-13 4:31 
GeneralRe: Stuck with function pointers in C and C++ Pin
CPallini25-Jan-13 2:04
mvpCPallini25-Jan-13 2:04 
GeneralRe: Stuck with function pointers in C and C++ Pin
Freak3027-Jan-13 23:30
memberFreak3027-Jan-13 23:30 
AnswerRe: Stuck with function pointers in C and C++ Pin
Stephen Hewitt27-Jan-13 4:40
memberStephen Hewitt27-Jan-13 4:40 
QuestionUSB Device Path Handle Problem Pin
yogeshs24-Jan-13 21:21
memberyogeshs24-Jan-13 21:21 
AnswerRe: USB Device Path Handle Problem Pin
Vaclav_Sal28-Jan-13 10:08
memberVaclav_Sal28-Jan-13 10:08 
QuestionHow to create a button on the right of the screen in mfc.? Pin
mbatra3124-Jan-13 19:53
membermbatra3124-Jan-13 19:53 
AnswerRe: How to create a button on the right of the screen in mfc.? Pin
Richard MacCutchan24-Jan-13 22:47
mvpRichard MacCutchan24-Jan-13 22:47 
GeneralRe: How to create a button on the right of the screen in mfc.? Pin
mbatra3127-Jan-13 19:39
membermbatra3127-Jan-13 19:39 
GeneralRe: How to create a button on the right of the screen in mfc.? Pin
Richard MacCutchan27-Jan-13 22:36
mvpRichard MacCutchan27-Jan-13 22:36 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 23 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid