Plane.dll tutorial DLL error

 
 
 
Posted by:stevegh
Data created:9 October 2010

Using Visual Studio 2010 Express and the trial for Professional I get the following error when trying to manually load the Plane.dll plugin (it won't load on its own I'm sure because of this error):

see attached

Searching around I need to include a module definition file (.def) but that seems to only work when in the C++ environment. Any ideas?


Attached Files:
Image 1

Hi Stephen,

It looks like 3dsmax is trying to load your Plane.dll as a regular Max C++ plugin. This is strange because those plugins all have a non-dll extension (i.e. .dlo for objects, .dlt for textures, .dlu for utilities, etc.) Can you please tell me where you placed Plane.dll? Is it in 3dsmax/plugins/ folder or somewhere else?

Thanks

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Hey Marsel,

I am indeed putting the Plane.dll file in the "C:\Program Files\Autodesk\3ds Max 2011\plugins\MaxDotNet" directory.

Please try to put it directly into 3dsmax/plugins/ (without MaxDotNet) and see if that makes a difference.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Hey it works! Do I need to add that path in some special way in max 2011?

Max.net will scan all 3dsmax directories specified in /plugin.ini files (just like 3dsmax does for its plugins). I'm surprised that 3dsmax tried to load stuff from /MaxDotNet folder.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Max actually didn't load the plugin so I tried to add it manually via the plugin manager and got that error. How should I set Max up to automatically pick up the plugins in the MaxDotNet folder, just add it to my plugins.ini?

Ah, now it makes sense. Yup that should work.

Marsel Khadiyev (Software Developer, EPHERE Inc.)