How to register an extension DLL with python 2.5?

B

Boaz Feldbaum

Hello all,

I wrote an extension dll in C++ using VS2005 to be used in windows platform.
In pyhon 2.4 I used to copy my dll to the dlls sub-directory of python
installation and import my dll and it worked fine. This doesn't work with
python 2.5. I get the following when trying to import my dll:
Traceback (most recent call last):

What should I do in 2.5 to be able to import my extension dll?

Thanks a lot in advance,
Boaz.
 
B

Boaz Feldbaum

OK, found it! I just had to give my dll a new file extension: PYD, that is
rename it from foo.dll to foo.pyd
 

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,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top