SFML community forums

Help => Window => Topic started by: Atreyu on August 01, 2008, 08:33:47 am

Title: Close() is not a member of Class Window?
Post by: Atreyu on August 01, 2008, 08:33:47 am
Hi there!

Well, I was looking around in the tutorial, created some Threads (System Package) and opened a window. Worked fine. But then on the handling events (http://www.sfml-dev.org/tutorials/1.3/window-events.php) site, I ran into problems. At the lines:

Code: [Select]
while (App.IsOpened())

and

Code: [Select]
  App.Close();

I get the message:

C:\Projects\sfml\sfml_test\main.cpp|23|error: 'class sf::Window' has no member named 'IsOpened'|

(the same to App.Close)

I created the window with this line:
Code: [Select]
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Events");

Why?
Title: Close() is not a member of Class Window?
Post by: Laurent on August 01, 2008, 09:11:56 am
Because you're using an old version of SFML (current one is 1.3) ?
Title: Close() is not a member of Class Window?
Post by: Atreyu on August 01, 2008, 10:23:33 am
The tutorial said "Version 1.3"

So.. sorry then...
Title: Close() is not a member of Class Window?
Post by: Laurent on August 01, 2008, 11:47:00 am
Yes, version 1.3 has these functions, that's why I think you're actually using an old version.