0
0

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.

Dan

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

Ok, thanks. I didn’t realize only .NET modules could be added. Thanks.

  • You must to post comments
0
0

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 :)

[img:habqic07]http://i132.photobucket.com/albums/q30/spraycanmansam/fmodex.jpg[/img:habqic07]

  • You must to post comments
0
0

Thanks spraycanmansam. That’s just the type of workaround I was looking for!

Dan

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.