Click here to Skip to main content
15,902,879 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am making a dj application in C#, and i am making the player section right now. But I have a problem. I have my player based on un4seen BASS I have the player in a user control, works great. but when I go to my form1 the i get a warning over the whole Form1 screen "Unable to load DLL 'bass.dll': Can't find the libary. (Exception from HRESULT: 0x8007007E)". I have placed the dll in the bin, obj, properties, recourses and the default folder but it is still saying that. Does anybody experience with this kind a problem?

Job
Posted

If there's a HRESULT involved, it's probably a COM dll. Is it registered ?
 
Share this answer
 
Build a tlb file for bass.dll and then include the tlb file in your project. [^]

Hope this helps.
 
Share this answer
 
v3
hi, Well there may be several reasons causing this error but for this how it was solved:

in my project the engine part was a dll, written in c++ lets call it the NINJA dll. and the GUI written by C#. everything used to work fine until I made a lot of change in C++ converted to dll tested in a simple GUI, and still every thing is fine. but as I add the NINJA to my previous GUI i got this error.
I fixed problem firstly by adding all the dlls to debug folder and adding them by refrence to the C++ project where ninja is built. and I also all these dlls to debug folder of GUI plus adding them by refrence to the GUI project. problem solved


DLLs list:

dwmapi.dll
phymem.sys
pmdll.dll
RCX4f.tmp
wdapi811.dll
windrvr6.inf
windrvr6.sys
winIO.dll//add this if you get error "file does not exist" from inner exception
winIO.vxd
xpdemok.sys//U always need this one I guess


hope this helps....
 
Share this answer
 

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