1
Window / sf::RenderWindow returns NULL pointer
« 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
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