1
General / App Currupted buffer overflow
« on: November 16, 2010, 12:21:11 pm »
i've done the second. but i will try to do it how its described in the first way.
edit: the same problem
edit: the same problem
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <iostream>
using namespace std;
using namespace sf;
int main()
{
Window App(VideoMode(800,600,32), "SFML Window");
App.Create(VideoMode(800,600,32),"SFML Window");
// Start main loop
while (App.IsOpened())
{
Event Event;
while(App.GetEvent(Event))
{
if (Event.Type == Event::Closed)
App.Close();
if ((Event.Type == Event::KeyPressed) && (Event.Key.Code == Key::Escape))
App.Close();
}
App.Display();
}
return EXIT_SUCCESS;
}