Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Adding Parameters to Windows' Callbacks

This topic is 6100 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to know if I can add a parameter to an existing windows callback. I have to use the MidiCallback and I need the callback to be able to access members of the class calling it(I hope that makes sense). Anyway it would make life much easier if I could pass an Lparam through it like what is done in DialogBoxParam. If anyone knows what I talking about and can offer some help/suggestion, it would be greatly appreciated.

Share this post

Link to post
Share on other sites

MMRESULT midiStreamOpen(
LPUINT puDeviceID,
DWORD cMidi,
DWORD_PTR dwCallback,
DWORD_PTR dwInstance, // <- ... made for you

DWORD fdwOpen

I used this one to access my waveOut class

[edited by - cnstrnd on February 1, 2003 6:47:33 AM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!