Click here to Skip to main content
13,195,594 members (71,061 online)

C / C++ / MFC

 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan9-Feb-13 2:05
mvpRichard MacCutchan9-Feb-13 2:05 
GeneralRe: icon on button not displayed in XP. Pin
VCProgrammer10-Feb-13 20:31
groupVCProgrammer10-Feb-13 20:31 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan11-Feb-13 0:35
mvpRichard MacCutchan11-Feb-13 0:35 
GeneralRe: icon on button not displayed in XP. Pin
VCProgrammer11-Feb-13 20:29
groupVCProgrammer11-Feb-13 20:29 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan11-Feb-13 22:13
mvpRichard MacCutchan11-Feb-13 22:13 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan12-Feb-13 9:37
mvpRichard MacCutchan12-Feb-13 9:37 
GeneralRe: icon on button not displayed in XP. Pin
VCProgrammer12-Feb-13 19:59
groupVCProgrammer12-Feb-13 19:59 
QuestionStuck in WaveInProc Pin
AmbiguousName2-Feb-13 7:21
memberAmbiguousName2-Feb-13 7:21 
Hello guys. I am trying to write a small recording program but am stuck in basics. I can not pass the pointer of the WaveInProc function properly. I am trying it in two ways, both of them widely used on online examples.
1 - rResult = ::waveInOpen(&phWaveIn, WAVE_MAPPER, &pcmWaveFormat, (DWORD)WaveInProc, 0, CALLBACK_FUNCTION);
 
2 - rResult = ::waveInOpen(&phWaveIn, WAVE_MAPPER, &pcmWaveFormat, (DWORD)&WaveInProc, 0, CALLBACK_FUNCTION);
 
// then tried this one as well, generating error c2440
3 - rResult = ::waveInOpen(&phWaveIn, WAVE_MAPPER, &pcmWaveFormat, (DWORD)(VOID*)WaveInProc, 0, CALLBACK_FUNCTION);

Their corresponding error messages are shown as under
1 - error C2440: 'type cast' : cannot convert from 'void (__stdcall CWaveApiDlg::* )(HWAVEIN,UINT,DWORD,DWORD,DWORD)' to 'DWORD'
 
2 - error C2276: '&' : illegal operation on bound member function expression

This is what WaveInProc looks like in my .cpp file
void CALLBACK WaveInProc(HWAVEIN hDevice, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2)
{
}

Everything seems to be fine ... what is wrong here? Thanks for any help.

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

AnswerRe: Stuck in WaveInProc Pin
CPallini2-Feb-13 10:38
mvpCPallini2-Feb-13 10:38 
AnswerRe: Stuck in WaveInProc Pin
Richard MacCutchan2-Feb-13 21:26
mvpRichard MacCutchan2-Feb-13 21:26 
QuestionMFC and printing Pin
Argonia31-Jan-13 5:43
memberArgonia31-Jan-13 5:43 
AnswerRe: MFC and printing Pin
sujayg1-Feb-13 16:21
membersujayg1-Feb-13 16:21 
Questionunable to register COM dll 64 bit Pin
john563231-Jan-13 2:12
memberjohn563231-Jan-13 2:12 
AnswerRe: unable to register COM dll 64 bit Pin
«_Superman_»1-Feb-13 16:59
member«_Superman_»1-Feb-13 16:59 
QuestionCan a modeless dialog box be a main window Pin
ForNow29-Jan-13 11:44
memberForNow29-Jan-13 11:44 
AnswerRe: Can a modeless dialog box be a main window Pin
«_Superman_»29-Jan-13 19:17
member«_Superman_»29-Jan-13 19:17 
GeneralRe: Can a modeless dialog box be a main window Pin
ForNow29-Jan-13 19:34
memberForNow29-Jan-13 19:34 
AnswerRe: Can a modeless dialog box be a main window Pin
Richard MacCutchan29-Jan-13 21:10
mvpRichard MacCutchan29-Jan-13 21:10 
GeneralRe: Can a modeless dialog box be a main window Pin
ForNow30-Jan-13 7:30
memberForNow30-Jan-13 7:30 
GeneralRe: Can a modeless dialog box be a main window Pin
Richard MacCutchan30-Jan-13 7:34
mvpRichard MacCutchan30-Jan-13 7:34 
GeneralRe: Can a modeless dialog box be a main window Pin
ForNow30-Jan-13 8:13
memberForNow30-Jan-13 8:13 
GeneralRe: Can a modeless dialog box be a main window Pin
Richard MacCutchan30-Jan-13 9:07
mvpRichard MacCutchan30-Jan-13 9:07 
AnswerRe: Can a modeless dialog box be a main window Pin
Erudite_Eric30-Jan-13 3:04
memberErudite_Eric30-Jan-13 3:04 
GeneralRe: Can a modeless dialog box be a main window Pin
ForNow30-Jan-13 7:31
memberForNow30-Jan-13 7:31 
QuestionAnyone heard of an Anonymous Statistics / User Experience API or Toolkit Pin
Blake Miller29-Jan-13 6:11
memberBlake Miller29-Jan-13 6:11 

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 |
Web01 | 2.8.171019.1 | Last Updated 18 Oct 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid