Trouble with loading theme

  • 1 Replies
Trouble with loading theme
« on: 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.



  • *****
  • 1612
    • View Profile
    • Texus's Blog
Re: Trouble with loading theme
« Reply #1 on: 12 November 2018, 22:10:12 »
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.