Boost logo

Boost Users :

Subject: Re: [Boost-users] Windows API callback, using boost::bind
From: Jerry Jeremiah (jerry.jeremiah_at_[hidden])
Date: 2010-10-31 16:36:04


Lloyd <lloyd <at> cdactvm.in> writes:

> hi,
>  
> We have a class and it has a member function.
> When this function is called, it calls a Windows API. One of the argument
> of the windows API is a callback function. Naturally this callback function
> has to be a *non member* function. Is there any way by which I can pass a
> *member* function in the place of callback function. I heard about
> boost::bind, with bind is it possible?
>  
> Thanks,
>   Lloyd

Here are two separate things you can check out...

http://www.codeproject.com/KB/winsdk/callback_adapter.aspx

http://www.codeproject.com/KB/cpp/thunk32.aspx


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net