Make a callback in the mfc application
-
Hi all I am making an activex control using vc++. I want to receive the message MM_WIM_DATA so that I try the callback function for this but this callback function calls only ones so please give me some help how i use this callback function. The source code I am using as follows Deceleration void CALLBACK waveInProc(HWAVEIN hwi, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2); class myclass : public COleControl { friend void CALLBACK waveInProc(HWAVEIN hwi, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2); }; definition void CALLBACK waveInProc(HWAVEIN hwi, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2) { switch(uMsg) { case MM_WIM_DATA: OutputDebugStringA("wavein proc.............................."); break; } }
-
Hi all I am making an activex control using vc++. I want to receive the message MM_WIM_DATA so that I try the callback function for this but this callback function calls only ones so please give me some help how i use this callback function. The source code I am using as follows Deceleration void CALLBACK waveInProc(HWAVEIN hwi, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2); class myclass : public COleControl { friend void CALLBACK waveInProc(HWAVEIN hwi, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2); }; definition void CALLBACK waveInProc(HWAVEIN hwi, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2) { switch(uMsg) { case MM_WIM_DATA: OutputDebugStringA("wavein proc.............................."); break; } }
What is the problem? There is no question in your post. -Saurabh
-
What is the problem? There is no question in your post. -Saurabh
-
problem is that this callback function calls only ones.But I want to receive MM_WIM_DATA continuously.