> Yuri D'Elia wrote:
> 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.

Indeed, it could be a solution. But I should replanned the
whole way of communication between the dll and the app and
I really don't know much about sockets etc...

But don't you think that the user function required by add_handler
has a little conception pb ?

void Fl::add_handler(int (*f)(int))

since that function will inevitably be static, I think
a void userdata pointer would be very appreciable.

void Fl::add_handler(int (*f)(int, void*))

In that way user could retrieve his datas and do something
with that function.
Could such prototype be implemented in a futur release of FLTK
or is there a good reason to don't do so ?

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

Reply via email to