Hi.
I have successfuly compiled SFML for VC2010 and window is running.
Unfortunately , I have new problem.
#include <SFML\System.hpp>
#include <SFML\Graphics.hpp>
#include <SFML\Window.hpp>
#include <iostream>
int main(int argc, char **argv[])
{
sf::RenderWindow WND(sf::VideoMode(800, 600, 32), "LOLOLOLOLOLOLOL");
sf::Image img;
img.LoadFromFile("test.jpg");
sf::Sprite sprite;
sprite.SetImage(img);
sprite.SetPosition(20.0f, 20.0f);
while(WND.IsOpened())
{
sf::Event Event;
while(WND.GetEvent(Event))
{
switch(Event.Type)
{
case sf::Event::Closed:
WND.Close();
break;
case sf::Event::MouseLeft:
WND.Close();
break;
default:
break;
}
}
WND.Clear();
WND.Draw(sprite);
WND.Display();
}
return 0;
}
This is my code. My error is not writeable. When the program arrive on the code
sf::Image img;
img.LoadFromFile("test.jpg");
, it starts to beep... BEEP BEEP BEEP. And in console I have this output:
Than, I'm getting this from visual studio:
(On starting is: Failed to load image nad some characters)
So whats should I do? Please help.
P.S.: I've tried to place text "Crazy beeping sfml" to google and it not helped.[/quote]