how to get raw bytes for ctypes functions that return c_wchar_p

2013-11-19 Thread Mark Summerfield
Hi, I am using ctypes to access a function in a DLL using Python 3.3 32-bit on Windows 7 64-bit: dplGetPageText = dpl.DPLGetPageText dplGetPageText.argtypes = (ctypes.c_int, ctypes.c_int) dplGetPageText.restype = ctypes.c_wchar_p Python returns this as a str with the raw bytes already decoded.

Re: how to get raw bytes for ctypes functions that return c_wchar_p

2013-11-19 Thread Thomas Heller
Am 19.11.2013 17:58, schrieb Mark Summerfield: Hi, I am using ctypes to access a function in a DLL using Python 3.3 32-bit on Windows 7 64-bit: dplGetPageText = dpl.DPLGetPageText dplGetPageText.argtypes = (ctypes.c_int, ctypes.c_int) dplGetPageText.restype = ctypes.c_wchar_p Python returns

Re: how to get raw bytes for ctypes functions that return c_wchar_p

2013-11-19 Thread Mark Summerfield
On Tuesday, November 19, 2013 5:22:36 PM UTC, Thomas Heller wrote: Am 19.11.2013 17:58, schrieb Mark Summerfield: Hi, I am using ctypes to access a function in a DLL using Python 3.3 32-bit on Windows 7 64-bit: dplGetPageText = dpl.DPLGetPageText dplGetPageText.argtypes =