Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Make a callback in the mfc application

Make a callback in the mfc application

Scheduled Pinned Locked Moved C / C++ / MFC
c++comhelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raj1576
    wrote on last edited by
    #1

    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; } }

    S 1 Reply Last reply
    0
    • R raj1576

      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; } }

      S Offline
      S Offline
      Saurabh Garg
      wrote on last edited by
      #2

      What is the problem? There is no question in your post. -Saurabh

      R 1 Reply Last reply
      0
      • S Saurabh Garg

        What is the problem? There is no question in your post. -Saurabh

        R Offline
        R Offline
        raj1576
        wrote on last edited by
        #3

        problem is that this callback function calls only ones.But I want to receive MM_WIM_DATA continuously.

        K 1 Reply Last reply
        0
        • R raj1576

          problem is that this callback function calls only ones.But I want to receive MM_WIM_DATA continuously.

          K Offline
          K Offline
          KarstenK
          wrote on last edited by
          #4

          you have to setup the callback properly.

          Press F1 for help or google it. Greetings from Germany

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups