[C++-sig] Newbie type conversion question

David Abrahams dave at boost-consulting.com
Fri Nov 15 23:04:52 CET 2002

Mark Russell <mrussell8081 at pacbell.net> writes:

> I am wrapping part of DirectX and have run into an number of variations of
> the problem described below.
> In struct IntHwnd; HWND is a pointer.  What I pass to the wrapper from
> python is an int representation of the pointer so I need to cast the int
> from python to a pointer in C++.  I need to do the reverse when getting the
> attribute. How do I accomplish this?
> struct IntHwnd
> {
> 	HWND w;
> };

This seems like a similar problem:


Does that help at all?
                       David Abrahams
   dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

More information about the Cplusplus-sig mailing list