Re: passing arrays to a dynwin.windll.module method

2002-05-05 Thread Matthew Sherborne
Try Passing \x00 characters in one long string to split it up into many little strings. eg: >>> lst = ['bacon', 'egg', 'ham'] >>> str = '\00'.join(lst) >>> str 'bacon\x00egg\x00ham' >>> str += '\00' >>> str 'bacon\x00egg\x00ham\x00' >>> ___ ActivePy

passing arrays to a dynwin.windll.module method

2002-05-03 Thread Jeremy Dillworth
I have been trying to write a python script in order to do some automated testing on a DLL that I have written in C++. The DLL exposes a function which is supposed to be called with an array of char*. I can see that I need to use dynwin.windll.cstring to create an acceptable string, but what abo