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

Author Topic: Problems with Texture.loadFromFile  (Read 2098 times)

0 Members and 1 Guest are viewing this topic.

JLM

  • Newbie
  • *
  • Posts: 8
    • View Profile
Problems with Texture.loadFromFile
« on: May 21, 2014, 08:23:00 pm »
Info: Visual C++ 2008, SFML 2.0(for VC2008), Win32, WinXP.

When I'm loading my texture from file everything going fine until the program will run. Console is showing thousands of strange symbols. In the first line is something like "Failed to load image "lol.png"".
I don't know what I have to do. This image is in every single folder of my project but it still can't load it.
Please! do you have any ideas?
« Last Edit: May 21, 2014, 08:34:12 pm by JojololomenPL »

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Problems with Texture.loadFromFile
« Reply #1 on: May 21, 2014, 08:26:40 pm »
If you want help you need to ask a question and provide some details.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Problems with Texture.loadFromFile
« Reply #2 on: May 21, 2014, 08:49:20 pm »
Don't mix debug and release.
Laurent Gomila - SFML developer

JLM

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Problems with Texture.loadFromFile
« Reply #3 on: May 21, 2014, 08:54:39 pm »
In debug I have xxx-d.lib files. In release I have xxx.lib files.
I'm sure they are not mixed.

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Problems with Texture.loadFromFile
« Reply #4 on: May 21, 2014, 08:56:02 pm »
And also do make sure the libs you got are compiled for VS 2008. Actually I recommend you upgrade to 2013 to take advantage of C++11 features.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

JLM

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Problems with Texture.loadFromFile
« Reply #5 on: May 21, 2014, 09:12:09 pm »
YES that was it! ohh my stupid mistake. Sorry for waste of your time.

P.S.SFML is best 2d library and nothing can change it. I feel proud it's made in c++.