SFML community forums

Help => Window => Topic started by: jerryd on October 04, 2020, 05:04:40 am

Title: sf::RenderWindow returns NULL pointer
Post by: jerryd on October 04, 2020, 05:04:40 am
SFML forum,
 Windows 7

 I'm using SFML-2.5.1 with Visual Studio 2017.
 My program builds without any errors but I get an exception thrown because
 sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
 returns a NULL pointer.  Here's the entire program:

#include <SFML\Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
   window.close();
   return 0;
}

 I must be missing something.

jerryd
Title: Re: sf::RenderWindow returns NULL pointer
Post by: eXpl0it3r on October 06, 2020, 08:51:37 am
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
 returns a NULL pointer.  Here's the entire program:
The construction of a class never returns anything.

Maybe describe your problem by providing some details. What do you want to achieve and what exactly is happening?