Re: I want to use a C++ library from Python

2008-09-11 Thread Uwe Schmitt
On 10 Sep., 09:57, Anders Eriksson <[EMAIL PROTECTED]> wrote: > Hello, > > I have a C++ library compiled as Windows DLL's. It consists of 32 .h and 1 > .lib and 1 .dll files. I don't have the source code. > > How can I create a Python module from these files? Do you need the full library including

Re: I want to use a C++ library from Python

2008-09-10 Thread Fredrik Lundh
Anders Eriksson wrote: I have looked (very briefly) at the three framework you mention but they all need the source code of the C++? No, they need header files and an import library to be able to compile the bindings and link them to your DLL. Do you know enough about C/C++ build issues to

Re: I want to use a C++ library from Python

2008-09-10 Thread Anders Eriksson
Hello all and thanks for replying, > Diez B. Roggisch wrote: >> Which actually isn't really helpful, as a DLL itself says nothing about what >> language was used to create it - and sending the OP to e.g. ctypes makes no >> sense at all in the face of C++. > > The library - or more precisely the

Re: I want to use a C++ library from Python

2008-09-10 Thread Christian Heimes
Diez B. Roggisch wrote: Which actually isn't really helpful, as a DLL itself says nothing about what language was used to create it - and sending the OP to e.g. ctypes makes no sense at all in the face of C++. The library - or more precisely the calling convention of the library - is related t

Re: I want to use a C++ library from Python

2008-09-10 Thread Diez B. Roggisch
kaer wrote: > On 10 sep, 10:00, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> Anders Eriksson schrieb: >> >> > Hello, >> >> > I have a C++ library compiled as Windows DLL's. It consists of 32 .h >> > and 1 .lib and 1 .dll files. I don't have the source code. >> >> > How can I create a Python mo

Re: I want to use a C++ library from Python

2008-09-10 Thread kaer
On 10 sep, 10:00, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Anders Eriksson schrieb: > > > Hello, > > > I have a C++ library compiled as Windows DLL's. It consists of 32 .h and 1 > > .lib and 1 .dll files. I don't have the source code. > > > How can I create a Python module from these files?

Re: I want to use a C++ library from Python

2008-09-10 Thread Diez B. Roggisch
Anders Eriksson schrieb: Hello, I have a C++ library compiled as Windows DLL's. It consists of 32 .h and 1 .lib and 1 .dll files. I don't have the source code. How can I create a Python module from these files? Did you bother googling? http://www.google.de/search?q=python+c%2B%2B&ie=utf-8&oe

I want to use a C++ library from Python

2008-09-10 Thread Anders Eriksson
Hello, I have a C++ library compiled as Windows DLL's. It consists of 32 .h and 1 .lib and 1 .dll files. I don't have the source code. How can I create a Python module from these files? // Anders -- English is not my first, or second, language so anything strange, or insulting, is due to the tr