Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

why Max doesn't load my .dll ?

why Max doesn't load my .dll ?

Anonymous
Not applicable
448 Views
1 Reply
Message 1 of 2

why Max doesn't load my .dll ?

Anonymous
Not applicable

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

```

  1. QQ截图20191031151458.jpg
  2. 8~QX8GYLN&#125;C8E04LR%M`XF3.png

 

0 Likes
449 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

 

this is my code and error info in console

>>> 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

 

 

0 Likes