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…

…then import as normal py module.

The is just giving me errors:

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

error: no commands supplied

Whats going on? My 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”.


Yes I do have a compiler, devc++.

Seems you are running:

python build

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