Game Development Community

LoadLibrary("np3DPlugin.dll") failed.

by ShaoWei · in Torque Game Engine · 08/26/2009 (12:21 am) · 1 replies

I just followed the tutorial of http://tdn.garagegames.com/wiki/TGE/Code/How_to_make_torque_a_plugin and build up the np3DPlugin project, it worked on my local machine, but when I copy them (np3DPlugin.dll , nsI3DPlugin.xpt) to the another PC, and ran the command with "regsvr32 /c np3DPlugin.dll" the error message pops up. "LoadLibrary('np3DPlugin.dll') failed, it might be resolved through reinstall the application (or some thing like that)".

Dose anyone knows of how to fix it ?

By The Way, I'm using TGE SDK 1.5.1 and Microsoft Visual Studio 2008.

#1
08/26/2009 (3:57 am)
Okay, I just fixed that in the debug version.
I have copied "msvcr90d.dll" & "Microsoft.VC90.DebugCRT.manifest" two files to the same directory and ran the regsvr32 /c np3DPlugin.dll, it succeed.

The problem I found is that the file of "Microsoft.VC90.DebugCRT.manifest" which is very important is for the registration. But the Release version still puzzling for me. I have tried to copy all the dll files from VC\redist\x86\Microsoft.VC90.CRT, the registration still not pass.