Trouble with loading theme

Started by Mikart, 12 November 2018, 19:56:33


I have problem with loading theme in my project.

I am using VS17

I do not know what I am doing wrong.
I found on forum one topic about this but it did not help me.


You can get the exact error by surrounding the code with a try-catch block:
Code (cpp) Select
try {
    // contents from main() function
} catch (const tgui::Exception& e) {
    std::cerr << e.what() << "\n";

If the error is that it can't find the file then make sure the theme file is located in the same folder as your executable.