Re: [python-win32] a question about word addin , IRibbonExtensibility, GetCustomUI, getImage, IPicture

2012-03-25 Thread shuwj
> I believe a c_void_p is a ctypes construct which aren't supported by > pywin32. You need to convert it to a "normal" Python type. I'm > guessing it is binary data, so in py2k, you should be able to simply use > buffer(some_string_object). The error message seems to imply you may > even be

Re: [python-win32] a question about word addin , IRibbonExtensibility, GetCustomUI, getImage, IPicture

2012-03-25 Thread Mark Hammond
I'm not familiar enough with ctypes to know if that makes sense, but I doubt it - nothing would seem to know the size of the buffer pointed at by 'x'. You probably need to stick with using a python string object - ensure the string contains exactly the bytes of the metafile. Mark On 25/03/20