Cannot Load DLL in C# Example Download

Started by JackRazz,

JackRazz

Hi,
I'm new to C# and VS.NET and I'm having problems getting the C# example download to work.  I downloaded it today along with the Boss.dll & basswma.dll files.  It cannot load the dll files.  

When I copy the Bass.dll & basswma.dll into the application's (Solution) build directory, the compiled programs work fine.  The problem has to be something really simple, but I'm at a complete loss as to what I'm doing wrong.


I switch to Debug (vs Release) and start the program and get this:

An unhandled exception of type 'System.DllNotFoundException' occurred in nbass.dll
Additional information: Unable to load DLL (bass.dll).


What am I doing wrong?

Thanks - JackRazz

WingZero

Release builds are output in bim\Release. Debug builds are in bin\Debug. You'll have to put BASS.dll and BASSWMA.dll in both directories, or in \Windows\ or \Windows\System32.