Import external DLLs

FIXED: All external DLLs must be placed in the Blender directory:

C:\Program Files\Blender Foundation\Blender

Afternoon all,

Does anyone know to call an external dll in a python script within Blender? The script works fine outside of blender but when I run the script in blender it throws an error on line that imports the DLL. The specific error is:

WindowsError: [Error 126] the specified module could not be found

Is there a folder I have to put the DLL in?

Any suggestions are appreciated!

you can use dll functions using ctypes.

from ctypes import *
yourdllwrap=cdll.LoadLibrary(mylibrary.dll)

my 2c
L.