SFML community forums
Help => Window => Topic started by: Ges on November 27, 2010, 06:10:45 am
-
Hello. I dont create window. My program compile, run, but nothing occur. Process manager have my prog. I tried SFML 1.6 and 2.0.
My code:
#include <SFML/Window.hpp>
int main()
{
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
bool Running = true;
while (Running)
App.Display();
return EXIT_SUCCESS;
}
Win 7 x86. VS 2010
PS This code work
#include <SFML/System.hpp>
#include <iostream>
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime() << std::endl;
sf::Sleep(0.5f);
}
return 0;
}
-
Nothying happens because you do nothing. Read the next tutorial (about events) and you will start seeing something useful.
-
This code don't create window! This situation ( window not created ) repeats in all standart examples.
-
Have you recompiled SFML with VC++ 2010?
-
Yes.
I tried SFML 1.6 and 2.0.
-
Do you mean that you get a black console window but no graphics window?
-
If I compile the program as "Console subsystem", I have only console window.
If I compile the program as "Windows", I have nothing.
-
My problem is identical to yours, so if you fix it could you please post how.
-
This post might help..
http://www.sfml-dev.org/forum/viewtopic.php?p=25005#25005
-
i had this problem and i fixed it, i read in this forum that there is something that SFML doesn't like in the ATI catalyst newer drivers, so downgrade to version 10.10e worked perfectly for me
-
I have this problem too... I have to rlly downgrade? That's look not good :S