Importing a ".DLL" not a ".pyd"

Can somebody shome me how I would go about creating a .dll to be used specifically for importing into a python script?
All I could find on the net were tutorials on creating a .pyd .dll from a normal .dll…I wan’t to use a .dll not a .pyd! (.dll’s with the extension “.dll” make your game look more professional :slight_smile: )

btw: I do know c/c++ and python, it’s my first time trying to using them together…

http://kortis.to/radix/python_ext/

…then import as normal py module.

The setup.py is just giving me errors:

 
Traceback (innermost last):
  File "C:\*****\setup.py", line 4, in ?
    setup(name = '*****', version = '1.0', ext_modules = [module])
  File "c:\python20\lib\distutils\core.py", line 125, in setup
    raise SystemExit, \
SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied


Whats going on? My setup.py is identical to the one in the tutorial…

-Do you have a compiler installed on your computer?You need a compiler
(cygwin,Microsoft C,Borland C).Read the Python documentation “Extending and Embeding”.

Ben

Yes I do have a compiler, devc++.

Seems you are running:

python setup.py build

from a window.Try to run it from console(dos window).

Ben