[fpc-devel] procedure ... message

peter green plugwash at P10Link.net
Mon Feb 12 19:17:03 CET 2007

> What does the compiler do when translating "procedure ... message" ?
> I need to know this as I want to create a non-GUI workalike of the 
> TApplication class that can do things like "TTimer" 
> "TThread.Synchronize", Message events, etc, using Windows messages in 
> Windows (for testing purpose) and system V message queues in Linux.
afaict it does the same as delphi does, puts them in some form of table which is used by the dispatch method in tobject (which on delphi at least is called from wndproc which is called from mainwindowproc which is registered as the window procedure for the window and hence called by windows when the mainloop calls the windows api function dispatchmessage).

More information about the fpc-devel mailing list