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.


Messages - FrewCen

Pages: [1]
1
Graphics / ..
« on: February 29, 2012, 09:58:59 am »
Thanks, works!!!
(Sorry for idiot questions, but before I started c++ i worked in C#... since than everything changes and now I have little problem to use c++...)

2
Graphics / ...
« on: February 29, 2012, 08:59:19 am »
Do you mean: /MTd and /MDd or ?
If you mean releases and versions, I have 1.6 (which was compiled by me).
(and if you mean the build functions in visual studio where are: debug, debug dll, debug static, release, release dll, release static...... do you?)

3
Graphics / sf::Image and crazy sound
« on: February 29, 2012, 08:42:32 am »
Hi.

I have successfuly compiled SFML for VC2010 and window is running.
Unfortunately , I have new problem.
Code: [Select]
#include <SFML\System.hpp>
#include <SFML\Graphics.hpp>
#include <SFML\Window.hpp>
#include <iostream>

int main(int argc, char **argv[])
{
sf::RenderWindow WND(sf::VideoMode(800, 600, 32), "LOLOLOLOLOLOLOL");
sf::Image img;
img.LoadFromFile("test.jpg");
sf::Sprite sprite;
sprite.SetImage(img);
sprite.SetPosition(20.0f, 20.0f);
while(WND.IsOpened())
{
sf::Event Event;
while(WND.GetEvent(Event))
{
switch(Event.Type)
{
case sf::Event::Closed:
WND.Close();
break;
case sf::Event::MouseLeft:
WND.Close();
break;
default:
break;
}
}

WND.Clear();
WND.Draw(sprite);
WND.Display();
}
return 0;
}

This is my code. My error is not writeable. When the program arrive on the code
Code: [Select]
sf::Image img;
img.LoadFromFile("test.jpg");

, it starts to beep... BEEP BEEP BEEP. And in console I have this output:

Than, I'm getting this from visual studio:
(On starting is: Failed to load image nad some characters)
So whats should I do? Please help.

P.S.: I've tried to place text "Crazy beeping sfml" to google and it not helped.[/quote]

4
System / Visual C++ Express 2008
« on: February 29, 2012, 07:20:42 am »
Ok, hi all.

Today I have new problem.
My code + error:

It is something like:
Code: [Select]
fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B8 - sfml-system.dll
fatal error LNK1107: invalid or corrupt file: cannot read at 0x2A8 - sfml-window.dll
fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B0 - sfml-graphics.dll

So does anybody know how to repair it? Please help me.

J.F.I.: On Visual Studio 2010 Proffessional I'm getting debug error, not LNK error...

5
Window / ?
« on: February 28, 2012, 04:57:16 pm »
And how and what should I recompile?

6
Window / ....
« on: February 28, 2012, 03:41:06 pm »
Working code:
Code: [Select]
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <iostream>
#include <SFML/Graphics.hpp>

using namespace std;
using namespace sf;
int main()
{
sf::RenderWindow WND(sf::VideoMode(800, 600, 32), "Test WND");
while(WND.IsOpened())
{
sf::Event Event;
while(WND.GetEvent(Event))
{
if(Event.Type = sf::Event::Closed)
WND.Close();
}
WND.Display();
}
return 0;
}


Not working:
Code: [Select]
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <iostream>
#include <SFML/Graphics.hpp>

using namespace std;
using namespace sf;
int main()
{
sf::RenderWindow WND(sf::VideoMode(800, 600, 32), "Test WND");
while(WND.IsOpened())
{
sf::Event Event;
while(WND.GetEvent(Event))
{
if(Event.Type = sf::Event::Closed)
WND.Close();
}
WND.Clear();
WND.Display();
}
return 0;
}

Error:

7
Window / ..
« on: February 28, 2012, 09:38:56 am »
I have done next tutoriasl, but I'm getting error with somethig like "debug hook" when I'm trying to do App.Clear(); metohod. What should I do now? It breaks my code everytime when I'm starting application.

8
Window / Unknown unrepairable error LNK
« on: February 28, 2012, 07:35:01 am »
Hi all.

Today I've started to use SFML Window package and in first tutorial I found problem (for me). My code:
Code: [Select]
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <iostream>

using namespace std;
using namespace sf;
int main()
{
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
App.Create(sf::VideoMode(800, 600, 32), "SFML Window", sf::Style::Fullscreen);
bool Running = true;
while (Running)
{
App.Display();
}

return EXIT_SUCCESS;
}


My error:
http://img401.imageshack.us/img401/3355/c608e44e56cc48108f3e1a6.png
And when I'm not using fullscreen:
http://img46.imageshack.us/img46/7518/76d5406b8dad48f2b90750a.png
Does anybody know how to repair it? Please help me.

Pages: [1]
anything