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

Author Topic: Close() is not a member of Class Window?  (Read 4125 times)

0 Members and 2 Guests are viewing this topic.

Atreyu

  • Newbie
  • *
  • Posts: 2
    • View Profile
Close() is not a member of Class Window?
« 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 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Close() is not a member of Class Window?
« Reply #1 on: August 01, 2008, 09:11:56 am »
Because you're using an old version of SFML (current one is 1.3) ?
Laurent Gomila - SFML developer

Atreyu

  • Newbie
  • *
  • Posts: 2
    • View Profile
Close() is not a member of Class Window?
« Reply #2 on: August 01, 2008, 10:23:33 am »
The tutorial said "Version 1.3"

So.. sorry then...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Close() is not a member of Class Window?
« Reply #3 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.
Laurent Gomila - SFML developer

 

anything