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

Author Topic: sf::Image object  (Read 1434 times)

0 Members and 1 Guest are viewing this topic.

kasumi111

  • Newbie
  • *
  • Posts: 5
    • View Profile
sf::Image object
« on: December 20, 2011, 08:06:27 pm »
I'm at the very beginning of using SFML library. I tried to initiate an object from the Image class but I got the error saying that the variable is corrupted. Honesty I do not know where to start from...to fix it.

Code: [Select]

#include "stdafx.h"
#include <SFML\System.hpp>
#include <SFML/Graphics/Image.hpp>
#include <iostream>


int _tmain(int argc, _TCHAR* argv[])
{

sf::Image c;
return 0;
}

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::Image object
« Reply #1 on: December 20, 2011, 08:29:05 pm »
VC++ 2010?
Laurent Gomila - SFML developer

kasumi111

  • Newbie
  • *
  • Posts: 5
    • View Profile
sf::Image object
« Reply #2 on: December 20, 2011, 09:11:23 pm »
yes VC++ 2010

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::Image object
« Reply #3 on: December 20, 2011, 09:35:27 pm »
You must recompile SFML.
Laurent Gomila - SFML developer

kasumi111

  • Newbie
  • *
  • Posts: 5
    • View Profile
sf::Image object
« Reply #4 on: December 20, 2011, 10:22:46 pm »
could you be more specific... I'm really a beginner...and I'm not sure how to do it :oops:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::Image object
« Reply #5 on: December 21, 2011, 08:02:42 am »
Open SFML.sln, let the assistant convert the files, and click "compile". That's it.

There are tons of topics about this on the forum, there are even video tutorials if you can find them.
Laurent Gomila - SFML developer