why Max doesn't load my .dll ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have complied a `.dll`, which i put under the root path of Max 2020.
But when i want to load this `.dll`, it comes a WindowsError[127] (pic-1).
I do have the right path name and file name, but why can't i load my dll?
BTW, i can load any other dll as usual in pic-2.
```python
>>> import os
>>> import MaxPlus
>>> path = MaxPlus.PathManager_GetMaxSysRootDir()
>>> path_dll = os.path.join(path, r'VertexDLL.dll')
>>> path_dll
u'C:\\Program Files\\Autodesk\\3ds Max 2020\\VertexDLL.dll'
>>> ctypes.CDLL(path_dll)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Program Files\Autodesk\3ds Max 2020\python27.zip\ctypes\__init__.py", line 362, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 127]
>>> os.path.exists(path_dll)
True
```