[haiku-development] Re: Intercepting messages between the applications and App. Server

From: Karsten Heimrich <host.haiku@xxxxxx>

To: haiku-development@xxxxxxxxxxxxx

Date: Sat, 23 May 2009 19:24:35 +0200

Hi Yashasvi,
Yashasvi A.C. schrieb:

Hey,
I used the given code extract but an error saying "no matching function call
to BMessageFilter (message_delivery, message_source, {unkown type})"
occurred. Then, I realised that perhaps it was supposed to be
message_print_hook() function call i.e. with the brackets, while
initialising fMessageFilter. I am not sure what parameters need to be passed
to message_print_hook().
My code kinda looks like:
<code>
BMessage* msg = new BMessage();
BMessageFilter(B_ANY_DELIVERY, B_ANY_SOURCE, message_print_hook(msg, this,
fMessageFilter));
</code>