PDA

View Full Version : where should i put B.dll if my A.mll depends on it?


yaoyansi
10-11-2009, 06:31 AM
hi, all

I write a plugin A.mll, and it depends on project B.
B is an open source project, and it can generate B.dll.and B.lib.

Case 1:
I link B.lib in my project(MSVC2005), A.mll depends on B.dll. (I check A.mll by a dll viewer, and find that A.mll uses serveal functions in B.dll )
Then, I import A.mll in maya PluginManager, and it complains:
// Error: file: D:/Maya2009ROOT/scripts/others/pluginWin.mel line 663:
Unable to dynamically load : E:/MyProjectRoot/A.mll
The specified module could not be found.

The complains still exists even i put B.dll into Maya2009ROOT\bin\plug-ins\B\ .


Case2:
I include source code of B project and don't link B.lib. This time, A.mll doesn't depend on B.dll anymore, I'm sure of this by the dll viewer.
and A.mll can be imported in maya. Every thing is fine.


But, how to solve the problem in Case 1? Assuming that B is not open source, and my project depends on B.dll and B.lib.

Thanks in advance.

CGTalk Moderation
10-11-2009, 06:31 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.