#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>
using namespace std;
using namespace sf;
Ftp Server;
RenderWindow App;
int main()
{
App.Create(VideoMode(800, 600, 32), "SFML Window");
App.SetFramerateLimit(60);
while (App.IsOpened())
{
Event Event;
while (App.GetEvent(Event))
{
// Window closed
if (Event.Type == Event::Closed)
App.Close();
// Escape key pressed
if ((Event.Type == Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
App.Close();
}
App.Display();
}
return EXIT_SUCCESS;
}
windows vista sfml 1.4
adding the "Ftp Server;" makes the runtime error but when i do it in a console application it works fine =/