Hello forum,
I have a buffer in C++ that I need to fill in Python. The Address of the
buffer is obtained through the GetAddress method which returns a void
pointer to the buffer address.
#include
class Foo
{
public:
Foo(const unsigned int length)
{
m_b
Thanks again. I'll give it a try as soon as I get a chance.
On Tue, May 1, 2012 at 10:37 AM, Roman Yakovenko
wrote:
> On Tue, May 1, 2012 at 5:25 PM, Ehsan Pi wrote:
> > Thanks Roman,
> >
> > I believe these are not specific to py++ but boost.python, correct?
>
&
Mon, Apr 30, 2012 at 9:54 PM, Ehsan Pi 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 tha
r easier just to
> declare it an opaque pointer and be done with it.
>
> It is very unfortunate indeed that win32gui returns a HWND as an
> integer. It isn't an integer and must not be treated as one. Still,
> it's easy to write a routine which converts python integers to vo
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?
Ehsan
On Mon, Apr 30, 2012 at 2:46 PM, Roman Yakovenko
wrote:
> On Mon, Apr 30, 2012 at 9:11 PM, Ehsan Pi wrote:
>
Hello,
I've created a Boost.Python wrapper (using Py++) for a C++ legacy class
that takes a HWND window handle in its constructor. However, after
exporting the module to python when I try to use it, I get a type mismatch
error.
--
Here is the C++ class I'm wrapping:
/