Jump to content
  • Advertisement

Archived

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

Donuts

Adding Parameters to Windows' Callbacks

This topic is 5592 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
Advertisement

    
MMRESULT midiStreamOpen(
LPHMIDISTRM lphStream,
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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!