[C++-sig] Wrapping and Passing HWND with Boost.Python

Roman Yakovenko roman.yakovenko at gmail.com
Mon Apr 30 21:00:25 CEST 2012


On Mon, Apr 30, 2012 at 9:54 PM, Ehsan Pi <ehsanpii at gmail.com> wrote:
> Thanks Roman for your quick reply,
>
> That's what confuses me. HWND is essentially a pointer to an int to hold the
> window handle. How can to convert them to each other?

I am not sure that you are right, but in case you are, use
make_constructor and reinterpret_cast.

Regards,
Roman


More information about the Cplusplus-sig mailing list