Click here to Skip to main content
12,996,261 members (66,913 online)
Rate this:
Please Sign up or sign in to vote.
i have several DLL files to load into mozilla extension project, one of DLL files depend on other DLL files , but 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 14-Dec-11 3:39am
Updated 14-Dec-11 13:58pm
Pranit Kothari 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 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
SAKryukov 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.
tonyjiang88215 19-Dec-11 21:35pm
yeah , i had all DLLs in one directory , i didn`t find the way out , but i changed , i make them into one DLL , the main DLL link others like static-libs , after that i just needed load only one DLL file . I searched this problem , when ctypes load DLL , it just load the one you Specified , it can not load other lib automatically. it`s different with windows .

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170609.2 | Last Updated 19 Dec 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100