[C++-sig] Convert unsigned short* to Python

Roman Yakovenko roman.yakovenko at gmail.com
Thu Feb 8 08:37:46 CET 2007


On 2/8/07, Wingate, Ryan (GE Indust, Security) <ryan.wingate at ge.com> wrote:
>
>
> Hello,
>
> I have been working with Boost.Python for a very short time, and quickly encountered some difficulty.
> I need to wrap a function that returns a pointer to some image data of type unsigned short.
>
> unsigned short *PixP()const {return pixP;}

Take a look on next source code(
http://svn.berlios.de/wsvn/tnfox/trunk/Python/patches.cpp.h?op=file&rev=0&sc=0
)
It does exactly what you want.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list