Adding Parameters to Windows' Callbacks
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.
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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement