I write a function play, here is a declaration
long __stdcall play(int code,long lparam,long wparam);
{
......
}
And now a want to use this function in SetWindowsHookEx ( I write something like that)
int *hook;
hook=SetWindowsHookEx(2, play ,Application->Handle,0)
And this isn't good idea because the second parameter in SetWindowsHookEx must be this kind int (__stdcall*)() and i have long(__stdcall*)(int,long,long).Can I convert one type to another in some way. Please help !!!!!
long __stdcall play(int code,long lparam,long wparam);
{
......
}
And now a want to use this function in SetWindowsHookEx ( I write something like that)
int *hook;
hook=SetWindowsHookEx(2, play ,Application->Handle,0)
And this isn't good idea because the second parameter in SetWindowsHookEx must be this kind int (__stdcall*)() and i have long(__stdcall*)(int,long,long).Can I convert one type to another in some way. Please help !!!!!