Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i have several DLL files to load into mozilla extension project, one of DLL files depend on other DLL files , but ctypes.open only can load one DLL , how can i load them together? Thank you very much for your help : )

P.S. I had tried to load the main DLL file , i hoped ti can load other DLL files Automatically , but i catch a error "can not load libaray". when i delete the code call functions in other DLL files . it can be loaded and work perfectly , so the key of problem is how to add those files together with relation.
Posted
Updated 14-Dec-11 13:58pm
v2
Comments
[no name] 14-Dec-11 9:43am    
What is CTypes.Open(), any specific library you are using?
tonyjiang88215 19-Dec-11 21:26pm    
i used lame and libmad , something with sound working.
Albert Holguin 14-Dec-11 10:42am    
If ctypes.open is something that is Firefox project specific, you may be better off asking in a Firefox specific forum (search their website and see if they have a developers exchange space).
tonyjiang88215 19-Dec-11 21:36pm    
thanks : ) i had solve the problem
Sergey Alexandrovich Kryukov 14-Dec-11 23:44pm    
It looks like a trivial thing: one DLL is loaded by CTypes.Open, and that DLL loads others. Not automatically, but either by DLL linking or during run-time LoadLibrary (only why?) and it should work. You might have done something weird. Do you have all your DLLs in one directory? If you still don't have resolution, show some code.

Tag your platform.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900