Dll failed to initialize Error code 126, plugin created from Lesson 1: Sample utility plug-in

Dll failed to initialize Error code 126, plugin created from Lesson 1: Sample utility plug-in

Anonymous
Not applicable
17,133 Views
5 Replies
Message 1 of 6

Dll failed to initialize Error code 126, plugin created from Lesson 1: Sample utility plug-in

Anonymous
Not applicable
How I arrived at this.

1) I created the plugin as described in lesson 1, to create a utility plugin, it just has some output statements.

2) Error code 193, no win32, I am running a 64 bit version of 3d studio max.

3) So I change it to 64 bit libraries at C:\Program Files (x86)\Autodesk\3ds Max 2013 SDK\maxsdk\x64\lib recompiled and got fatal error LNK1104: cannot open file 'odbc32.lib'

4) So I included C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\x64 recompiled and received fatal error LNK1104: cannot open file 'msvcprtd.lib'

5) So I also included C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64 recompiled and success

6) Copied the dlu over to plugins and ran 3d studio max. Dll failed to initialize Error code 126, the specified module could not be found.

What could be causing this?

I attached the source if you are interested.

Thanks!

Vincent

maxproject1_1.zip

0 Likes
17,134 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
When i tried to load your project I get
Property sheet errors.

So first fix the Plugin wizard as described

HERE

Start a new project fill out wizard again with the same details
cut n paste over your code.

At the top of the VS window set the Platform to x64
Select and Right click your "project" in the solution Explorer ->Properties

Set Configurations to all and make sure platform = x64
Click c++ and add the path to maxsdk include folder to "Additional Include Directories"
(if you installed the sdk to its default path it should be C:\Program Files (x86)\Autodesk\3ds Max 2013 SDK\maxsdk\include)

Now click linker
and add the path to the 64 bit libraries in the "Additional Libraries Directories"
(if you installed the sdk to its default path it should be C:\Program Files (x86)\Autodesk\3ds Max 2013 SDK\maxsdk\x64\lib)

Hit apply then ok

Build the solution 🙂

0 Likes
Message 3 of 6

Anonymous
Not applicable
I followed your instructions and I still get Dll failed to initialize Error code 126 when I try to load the plugin.

I have also re installed 3d studio max to see if something went wrong with the install.

I have added the updated project and the updated files.

I appreciate your time and effort a lot. What else could be causing this?

Thanks,

Vincent

ughhletsdoit.zip

0 Likes
Message 4 of 6

Anonymous
Not applicable
I have been running on a virtual machine and it turns out that all of the errors were not being displayed.

After testing the file on a different computer I noticed a new error. MSVCR100D.dll is missing from your computer.

I put MSVCR100D.dll in my system32 folder and it runs just fine.
0 Likes
Message 5 of 6

Anonymous
Not applicable
Edit:Resolved 🙂
0 Likes
Message 6 of 6

Anonymous
Not applicable
Ahh ok 🙂
0 Likes