Skip to main content
GameDev.net gamedev.net
🔒 Locked

Adding Parameters to Windows' Callbacks

Started by Donuts Feb 1, 2003 at 5:35 AM 0 replies 150+ views
Original Post
Donuts
Donuts
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.
cnstrnd
cnstrnd

    
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]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.