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.


Topics - big_totoro

Pages: [1]
1
General / Static linking help 2.0
« on: November 07, 2012, 06:17:09 pm »
Hi everyone,

I'm new to SFML so I have been following the tutorials religiously! Got everything working with dynamic linking in 2.0 but the instructions for static linking don't seem to be working. Tried the debug version and release libraries but it keeps asking for the dll files in the bin folder. So I tried linking  to the bin folder and it works but the tutorial says you only need to link to the lib folder so I am bit confused.

Should I be linking to the lib folder or the bin folder or perhaps both?

Thanks in advance.

(Code::blocks, MinGW 4.4, Windows 7)

2
Window / Some keys not registering to close window
« on: November 06, 2012, 10:38:31 pm »
Hello, I'm a complete SFML rookie so I've been reading through the tutorials on the site.
I've got to the one that talks about using events to close the window and I've copied the code exactly.
This is the bit that handles the events:

        sf::Event Event;
        while (App.GetEvent(Event));
        {
            if (Event.Type == sf::Event::Closed)
                App.Close();

            if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
                App.Close();
        }

The program runs fine and closes properly when I press the X but pressing escape does nothing.
I tried F5 because that was a key given in another example and it worked! Also, none of the letter keys work but the arrow keys do. It seems strange that some work and some don't.

I'm probably missing something really obvious but if anyone can help me solve this it would be much appreciated.

Thanks!

Pages: [1]
anything