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 - Zauren

Pages: [1]
1
General / Tutorial Issue: Using Render Windows
« on: August 08, 2009, 03:15:59 am »
system wasn't in since it wasn't needed, but I stuck it in anyway to be sure. Same error. Dynamic is also set, that was the first thing I tried.

Oh god, I see what the issue was. I WAS compiling in debug without the -d libraries using 'start without debugging', because for all my time with Visual Studio that's how I tested the program instead of building it.

...I toldja it was something stupid! Many thanks!

2
General / Tutorial Issue: Using Render Windows
« on: August 07, 2009, 01:20:48 am »
All I have is sfml-window.lib sfml-graphics.lib in my additional dependences, unless that means something beyond just using the linker...

3
General / Tutorial Issue: Using Render Windows
« on: August 06, 2009, 02:59:43 am »
I'm an aspiring coder, and integrating SFML has been a new experience for me. I've managed to wrestle out all the speedbumps through searching and experimenting, but this one is a bit odd. I'm sure it's something simple but have little clue what the culprit is.

I took this code and slapped it in...

Code: [Select]
#include <SFML/Graphics.hpp>

int main()
{
    // Create the main rendering window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
   
    // Start game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Clear the screen (fill it with black color)
        App.Clear();

        // Display window contents on screen
        App.Display();
    }

    return EXIT_SUCCESS;
}


And when I run it, it opens the new window as expected, but then immediately goes white and crashes. But the debug window says it worked normally.

 My eyes are presently ?_? I'm using Visual Studio 2008, if that matters.

Pages: [1]
anything