Call a DLL function with argument type as unsigned char *

Bhavik bhavik.patel at
Thu Jan 7 11:20:32 CET 2010


I am a newbie to the python language, and I need to call a DLL
function from the python program.
The DLL function has following prototype:

unsigned int DLLFunction(unsigned char *, unsigned int);

Now, I need to declare an array of 6 bytes in the python, and pass
that array as the first argument to the DLL function. I tried some
methods mentioned on the Internet, but it gives error like "can not
convert argument 1".

Can someone tell me how to do this?

Thanks for the help.

More information about the Python-list mailing list