[EMAIL PROTECTED] wrote:

>> One of my app uses a dll wich sending messages to it's host prog trought
>> the PostMessage Windows function. So I use the fl_xid method to get a
>> valid Windows HWND (from an FLTK window) and the add_handler method to
>> define a function of my own that will parse the unknown messages sended
>> to my FLTK window.
>>
>> The function is prototyped as follow:
>>
>> static int my_parse_func(int event);
>>
>> The pb is that function can't do nothing else but parse unknown messages.
>> I mean that it can't communicated with the rest of the program even if
>> it's a static member function. Unless using a global pointer (not very
>> advisable in a C++ prog) I >don't see any other way to do something with
>> that kind of function.
> 
> No idea(s) at all ?

I don't have much experience using Win32, but I don't think there are
other solutions. Unless you can use the "wParam" "lParam" parameters
in some way that makes sense (like sending a cast-ed pointer to your
real data, or shared object).

I would look into other forms of communication (like sockets, IPC of some
other nature) if you have control over the dll.


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to