0
0

Hi,

I’m just trying to get started with FMODex and C#. I’m working on a simple program to play a sound when I press a button, but when I try to run the program, I receive an exception:

[code:3rs79neg]
System.DllNotFoundException was unhandled
Message="Unable to load DLL ‘../../api/fmodex.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
[/code:3rs79neg]
at
[code:3rs79neg]
public class Factory
{
public static RESULT System_Create(ref System system)
{
RESULT result = RESULT.OK;
IntPtr systemraw = new IntPtr();
System systemnew = null;

        result = FMOD_System_Create(ref systemraw); //<----Here
        if (result != RESULT.OK)
        {
            return result;
        }

[/code:3rs79neg]

I have copied the DLL into my system32 folder and into my project folder, as well as my bin/debug folder.

I’m using Visual Studio 2005 beta 2. I’ve also tried to add a reference to the DLL using the IDE, but it says that fmodex.dll is not a valid assembly or COM component…

I have FMOD installed at I:/FMOD, my IDE is installed at C:/ProgramFiles/MSVC… In the exception it is looking for the dll at ../../api/fmodex.dll…

Any ideas on what I could be doing wrong?

  • You must to post comments
0
0

If you have the dll in you bin folder change “public const string dll” in fmod.cs, default it points to “../../api/fmodex.dll” folder as the error tells you.

Try it like this in “fmod.cs” class

[code:1f5unrjo]public class VERSION
{
public const int number = 0x00040037;
public const string dll = "fmodex.dll";
}[/code:1f5unrjo]

  • You must to post comments
0
0

Ah, I see. Thank you very much.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.