Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C Firefox Extension
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 14-Dec-11 4:39am
Edited 14-Dec-11 14:58pm
v2
Comments
Pranit Kothari at 14-Dec-11 9:43am
   
What is CTypes.Open(), any specific library you are using?
tonyjiang88215 at 19-Dec-11 21:26pm
   
i used lame and libmad , something with sound working.
Albert Holguin at 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 at 19-Dec-11 21:36pm
   
thanks : ) i had solve the problem
SAKryukov at 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
tonyjiang88215 at 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
0 OriginalGriff 406
1 /\jmot 180
2 Suraj Sahoo | Coding Passion 170
3 Afzaal Ahmad Zeeshan 159
4 BillWoodruff 154
0 OriginalGriff 8,344
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,634
3 Maciej Los 5,024
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 19 Dec 2011
Copyright © CodeProject, 1999-2014
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