Re: [python-win32] how to call the dll in python

2008-11-03 Thread Tim Roberts
ysystudio wrote: > I have a windows dll1.dll with a export function: > > int f1(char filename,char **buf,int *bufLen) > { > int len; > //got the length of file anyway,such as 100 > len = 100;//len = getLen(filename); > *buf = (char*)calloc(100); > *bufLen = len; > return 0; > } > > then how can

Re: [python-win32] ByRef params not working with PythonCOM

2008-11-03 Thread Greg Antal
Mark: The workaround you suggest may not scale, but it works and I can live with it.  I was on the verge of giving up on Python for this project and converting to the API's native VB, but I won't have to do that now.  Thanks. - Greg Antal Gregory W. Antal Senior Technical Advisor ATA Enginee

[python-win32] how to call the dll in python

2008-11-03 Thread ysystudio
I have a windows dll1.dll with a export function: int f1(char filename,char **buf,int *bufLen) { int len; //got the length of file anyway,such as 100 len = 100;//len = getLen(filename); *buf = (char*)calloc(100); *bufLen = len; return 0; } then how can I call the f1 function with python. thanks f