> I need to set a callback function with a Windows call, but cant figure out
> how to point to a function in my program. For example
> Callback(hwnd, fpProc);
> Where fpProc is Address of the callback function.
>
> Say my function in current proceedure is
> Tmainform.beeper:boolean;
> begin
> end;
>
> Callback(hwnd,Longint(@beeper)); Does not work.
OK, first beeper is a method, not a function/procedure, and as much it
gets
a reference to your object pushed onto the stack before its called.
You need to do something like:
function beeper : boolean;
begin
return myMainFormVar.beeper;
end;
etc..
Nic.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz