Re: how to call this dll in python

2008-11-04 Thread Shark
On Nov 4, 2:16 pm, "Mark Tolonen" <[EMAIL PROTECTED]> wrote: > "Shark" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > >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,suc

Re: how to call this dll in python

2008-11-04 Thread Diez B. Roggisch
Shark schrieb: On Nov 3, 4:22 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: Shark schrieb: 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*

Re: how to call this dll in python

2008-11-03 Thread Mark Tolonen
"Shark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] 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

Re: how to call this dll in python

2008-11-03 Thread Shark
On Nov 3, 4:22 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Shark schrieb: > > > 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); > >

Re: how to call this dll in python

2008-11-03 Thread Diez B. Roggisch
Shark schrieb: 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

how to call this dll in python

2008-11-02 Thread Shark
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