[Closed] dlx Plug-in refuses to load
Hi, this for an exporter to my engine. A dle plug-in is already working, but now I need a way to expose the functionality to a friendlier UI, preferably to the Utilities rollout, I decided to create a dlx plug-in which allowing me to call a function in the dle throught a maxscript function.
Am using Max2010 and VStudio2008, after reading the MaxSDK documentation, I set up the dlx plug-in as its recommended, in short, it assumes to have a simpler .def file.
LIBRARY PluginName
EXPORTS
LibDescription @1
LibInit @2
LibVersion @3
SECTIONS
.data READ WRITE
which I have, after compiling the plug-in, when running 3dmax it doesn’t load the dlx. I tried loading it manually and it sends this message
dlx error
(Dll doesn’t implement LibVersion, LibDescription …)
Which is misleading ’cause those methods are correctly implemented.
My already working dle plug-in and the dlx are both in the same folder, as far as I can see this is correctly set up. It doesn’t matter if I implement LibNumberClasses & LibClassDesc it will send the same error message, maybe another more experimented collegue can hep me plz? Can’t see the problem :surprised:
Well, this problem is related to the VStudio set up, it seems explicitly defining the .def file is needed to be recognized under Linker->Input->Module Definition File.
Besides, regardless the documentation guidelines, the methods LibNumberClasses and LibClassDesc are needed to fully load it. They will return 0 kind of functions, and it is possible this requirement is due to an error in my code, but it loads and works though.