When I try to add fmodex.dll as a reference to my project I get an error message saying "A reference to ‘C:.………\fmodex.dll’ could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component".
I get this error message for fmodex.dll, fmodexL.dll, and fmodexp.dll. I am using C# if that makes a difference. I am still able to use fmod by simply putting the dll in the same directory as the exe, but I thought I’d still post the problem. Let me know if you have any other suggestions. Thanks.
- deadlydog asked 9 years ago
You can only add .NET Modules as references. FMOD is a native code DLL that is not understood by the .NET Framework.
Although the extension is the same and the basics of the file format, .NET DLLs are very different from native DLLs.
Just remember not the whole world revolves around .NET
So the preferred wy of working is to just copy the fmodex.dll along, PInvoke will take care of importing the correct functions.
- Gluber answered 9 years ago
Hey buddy, don’t know if this helps. I was trying to use FMOD but I couldn’t figure out how the hell to include the dll 👿 Eventually I got it working by adding the file to the project and making the the compiler copy the file to the main diretory, a picture speaks a thousand words —
- spraycanmansam answered 9 years ago
Please login first to submit.