1
General discussions / [SFML] error 0xc015002 help please :S
« on: August 26, 2011, 06:58:31 am »Quote from: "Haikarainen"
You cant display an window that isnt opened. Dont know is below code works since im used to renderwindows, but try it.
Try this;Code: [Select]#include <SFML/Window.hpp>
int main(){
sf::Window App(sf::VideoMode( 800, 600, 32 ), "SFML Test Window");
while(App.IsOpened()){
sf::Event Event;
while(App.GetEvent(Event)){
if(Event.Type == sf::Event::Closed){
App.Close();
}
}
App.Clear();
App.Display();
}
return EXIT_SUCCESS;
}
App.Clear();
Code: [Select]
gave me this error
1>c:\users\sex\documents\visual studio 2010\projects\sfml\sfml\main.cpp(16): error C2039: 'Clear' : is not a member of 'sf::Window'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\sfml\window\window.hpp(55) : see declaration of 'sf::Window'
and taking it off gives me the same 0xc015002 error :S what have i done! i broke it all! D: <_<' i might just re instal..could there be a c++ package im missing? i would be very surprised since i have downloaded alot due to video games i don't know this is so frustrating im so horribad XD could the fact that App.Clear(); was not found mean i am missing SOMETHING ?