Hello
consider this little program:
using SFML.Audio;
using SFML.Graphics;
using SFML.Window;
namespace SFML2
{
static class Program
{
static RenderWindow _window;
public static void Main(string[] args)
{
_window = new RenderWindow(new VideoMode(800, 500), "Title", Styles.Default, new ContextSettings(32, 0, 8, 999, 999));
SoundBuffer buffer = new SoundBuffer("ui3.wav");
Sound sound = new Sound(buffer);
while (_window.IsOpened())
{
_window.WaitAndDispatchEvents();
sound.Play();
_window.Display();
}
}
}
}
In my VS project I have the following files:
csfml-audio-2.dll
csfml-graphics-2.dll
csfml-window-2.dll
sfmlnet-audio.dll
sfmlnet-graphics.dll
sfmlnet-window.dll
All set to: Copy if newer.
The program runs and crashes with the error:
System.DllNotFoundException csfml-audio-2.dll could not be found
(or something similar, my VS is in german)
But all files are there. I tried drawing simple sprites and it works.
How do I fix this?
Thanks for any help in advance. I really like sfml (and its bindings
)