I'm calling the following from c#:
[DllImport("u3dapi10.dll", CharSet=CharSet.Auto)]
public static extern uint dapiCreateSession(out uint hSession);
Where is .NET looking for the u3dapi10.dll file? This was working previously but now I'm getting a DLLNotFoundException.
The u3dapi10.dll file is in the root directory of the project. I tried copying it to the bin/debug directory just to see what happens, but it couldn't find it there either.
Possible cause: Could this be caused by the u3dapi10.dll not being 64-bit compatible? e.g. Is a DllNotFoundException thrown if you try to access a 32-bit dll from a 64-bit machine? Or would it throw a BadImageFormatException as suggested by BadImageFormatException when loading 32 bit DLL, target is x86