Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Topics - zoloproject

Pages: [1]
1
Window / App keeps crashing before or while creating the window?
« on: October 18, 2008, 11:40:08 pm »
THis is under VS2008 and windows xP

heres the simple code I'm using
Code: [Select]
#include <SFML/Window.hpp>

int main()
{
sf::Window Window(sf::VideoMode(800, 600, 32), "Simple Window.");

bool running = true;
while (running)
{
sf::Event Event;
while (Window.GetEvent(Event))
{
if (Event.Type == sf::Event::Closed)
running = false;
}

Window.Display();
}

Window.Close();

return (0);
}


The console comes up and then I get an error message saying an unexpected error has occured.

Pages: [1]