On 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 that you are right, but in case you are, use
make_constructo
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:
> > In python I
On Mon, Apr 30, 2012 at 9:11 PM, Ehsan Pi wrote:
> In python I get the not-match error:
>
> >>> import MyWrapper
> >>> import win32gui
> >>> hwnd = win32gui.GetDesktopWindow()
> >>> foo = MyWrapper.Foo(hwnd)
> Traceback (most recent call last):
> File "", line 1, in
>
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:
/
Hello list,
correct me if I am wrong, but based on what I have found in the docs,
SO and few other places, when creating an object in Python and passing
it to a wrapped C++ function which expects a pointer and which takes
the ownership of that pointer, one should:
* use auto_ptr as held type when
Hi, thank you Stefan, but a have buliding error : LINK : fatal error LNK1104:
cannot open file 'boost_python-vc100-mt-1_48.lib' my first C++ program to
execute my Python script was : // main.cpp
#include
#include
#include using namespace std;int main() {
int fin