ctypes questions

James Hu jhu at metrigenix.com
Thu Oct 6 16:39:54 EDT 2005


Convert 

unsigned long imageSize;
Frame.pBuffer=new unsigned char[ imageSize ]

To 

buffer = (c_ubyte * imageSize)()	# create array
Frame.pBuffer = addressof(buffer)

Frame.pBuffer =  (c_ubyte * imageSize)()
TypeError: can't multiply sequence by non-int

Please help me out, thanks in advance

James



More information about the Python-list mailing list