1
General / The file is not created.
« on: March 16, 2019, 05:43:06 pm »
A problem that i met that my program cant create and save file.I found no answers anywhere so i decided to ask.
I noticed that when i do not connect sfml all works good. But when i connect sfml my programs cant create file even with help ifstream.(before i try save sf::Image). I reinstalled sfml,but the problem didn't go away.
Here is my code:
sf::Image i;
i.create(100, 100, sf::Color::Red);
i.saveToFile("Image.png");
This one too:
My IDE is visual studio 2017. My sfml version 2.5.1 .I use dynamic sfml,debug x64. My OC is windows 10. My geforce gtx 1060 video card.
I noticed that when i do not connect sfml all works good. But when i connect sfml my programs cant create file even with help ifstream.(before i try save sf::Image). I reinstalled sfml,but the problem didn't go away.
Here is my code:
sf::Image i;
i.create(100, 100, sf::Color::Red);
i.saveToFile("Image.png");
std::ofstream p;
char s[10]{"DonePSiz"};
p << s;
p.close();
This code dont create the corresponding errors but despite the absense of errors this code dont create files.char s[10]{"DonePSiz"};
p << s;
p.close();
My IDE is visual studio 2017. My sfml version 2.5.1 .I use dynamic sfml,debug x64. My OC is windows 10. My geforce gtx 1060 video card.