Creat a DLL File from python code, and use that DLL file in other Platform (Labview, Java .NET etc)

M

macedo.silva

Hi,

I would like to request your attention for this very specific issue:

I have several classes in Python, and now I want simply re-use it, in
other language.


The closest to solution I think I came was with this site:
http://www.py2exe.org/index.cgi/Py2...ver?highlight=((Py2exeAndCtypesComDllServer))
but I not able to solve questions related with TLB files and
__init__.py files.

So, could anyone give a tip about HOW TO CREAT a dll file from Python?

thank in advance

AMMS
 
D

Diez B. Roggisch

Hi,

I would like to request your attention for this very specific issue:

I have several classes in Python, and now I want simply re-use it, in
other language.


The closest to solution I think I came was with this site:
http://www.py2exe.org/index.cgi/Py2...ver?highlight=((Py2exeAndCtypesComDllServer))
but I not able to solve questions related with TLB files and
__init__.py files.

So, could anyone give a tip about HOW TO CREAT a dll file from Python?

You might have success with

http://elmer.sourceforge.net/

Diez
 
L

Larry Bates

Hi,

I would like to request your attention for this very specific issue:

I have several classes in Python, and now I want simply re-use it, in
other language.


The closest to solution I think I came was with this site:
http://www.py2exe.org/index.cgi/Py2...ver?highlight=((Py2exeAndCtypesComDllServer))
but I not able to solve questions related with TLB files and
__init__.py files.

So, could anyone give a tip about HOW TO CREAT a dll file from Python?

thank in advance

AMMS
Do you absolutely need .DLL? You can make a class into a COM object that
nearly every language on the planet can dispatch with ease. Here is some
info:

http://www.oreilly.com/catalog/pythonwin32/chapter/ch12.html

Calling an existing .DLL? Use ctypes module.

-Larry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top