On Tue, May 1, 2012 at 10:53 PM, Ehsan Pi <ehsan...@gmail.com> wrote:
> In Python, the output of the GetAddress is a void * to the memory address:
>
>     >>> import MyWrapper
>     >>> foo = MyWrapper.Foo(100)
>     >>> address = foo.GetAddress()
>     >>> print address
>     <void * object at 0x01E200B0>
>     >>>
>
> My question is can I fill the buffer in Python, and if so how?

Easily: using ctypes module. As in previous cases, search py++
documentation for ctypes, as it produces some integration code.

HTH,
Roman
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to