Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIn win7 ,how to modify registry with Non - administrator permission Pin
haha_c28-Jan-13 21:08
haha_c28-Jan-13 21:08 
AnswerRe: In win7 ,how to modify registry with Non - administrator permission Pin
Jochen Arndt28-Jan-13 21:38
professionalJochen Arndt28-Jan-13 21:38 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
haha_c28-Jan-13 22:02
haha_c28-Jan-13 22:02 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
Jochen Arndt28-Jan-13 22:57
professionalJochen Arndt28-Jan-13 22:57 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
haha_c28-Jan-13 23:18
haha_c28-Jan-13 23:18 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
Jochen Arndt28-Jan-13 23:33
professionalJochen Arndt28-Jan-13 23:33 
QuestionGet CBitmap from CDib Pin
_Flaviu28-Jan-13 20:30
_Flaviu28-Jan-13 20:30 
AnswerRe: Get CBitmap from CDib Pin
Jochen Arndt28-Jan-13 21:31
professionalJochen Arndt28-Jan-13 21:31 
QuestionAbout virtual function Pin
EhtishamArshad28-Jan-13 19:40
EhtishamArshad28-Jan-13 19:40 
AnswerRe: About virtual function Pin
Jibesh28-Jan-13 19:51
professionalJibesh28-Jan-13 19:51 
GeneralRe: About virtual function Pin
EhtishamArshad28-Jan-13 22:32
EhtishamArshad28-Jan-13 22:32 
AnswerRe: About virtual function Pin
Richard MacCutchan28-Jan-13 22:48
mveRichard MacCutchan28-Jan-13 22:48 
Questionwhere can download comment macro? Pin
yu-jian28-Jan-13 15:36
yu-jian28-Jan-13 15:36 
AnswerRe: where can download comment macro? Pin
Jibesh28-Jan-13 19:48
professionalJibesh28-Jan-13 19:48 
QuestionFilter the EN_KILLFOCUS message from CIPAddressCtrl Pin
zhangyoung28-Jan-13 14:53
zhangyoung28-Jan-13 14:53 
AnswerRe: Filter the EN_KILLFOCUS message from CIPAddressCtrl Pin
Code-o-mat28-Jan-13 22:27
Code-o-mat28-Jan-13 22:27 
GeneralRe: Filter the EN_KILLFOCUS message from CIPAddressCtrl Pin
zhangyoung29-Jan-13 3:04
zhangyoung29-Jan-13 3:04 
GeneralRe: Filter the EN_KILLFOCUS message from CIPAddressCtrl Pin
Code-o-mat29-Jan-13 3:13
Code-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
Kiran Satish27-Jan-13 16:40 
QuestionRe: How to create an uncompressed avi file from a matrix of data? Pin
CPallini27-Jan-13 22:38
mveCPallini27-Jan-13 22:38 
AnswerRe: How to create an uncompressed avi file from a matrix of data? Pin
Kiran Satish28-Jan-13 4:42
Kiran 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
professionalChris Losinger28-Jan-13 5:10 
AnswerRe: How to create an uncompressed avi file from a matrix of data? Pin
Vaclav_28-Jan-13 9:50
Vaclav_28-Jan-13 9:50 
AnswerRe: How to create an uncompressed avi file from a matrix of data? Pin
Shaheed Legion26-Feb-13 5:51
Shaheed Legion26-Feb-13 5:51 
QuestionWaveInOpen() returns error code 11 Pin
AmbiguousName26-Jan-13 3:14
AmbiguousName26-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.

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.