Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Valyok

Pages: [1]
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:
        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.
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.

Pages: [1]
anything