Call a function in DLL with string arguments?
juping+ at pitt.edu
Wed Nov 10 15:24:18 CET 1999
I wrote a DLL and want its functions being available from python. Its function
accept string arguments. From python, I use windll to load the module like:
handle = windll.module("dllname")
Python gives following msg:
TypeError: illegal argument type for built-in operation
So I did some tests, wrote a small dll and found out that if the function
accept only numerical values (actually, only integer value produces expected
results), then python won't give above errors. For char or char * argument,
it always gave above msg. Did I do something wrong?
Thanks for your reading.
More information about the Python-list