> I have spent much time reading documentation, I always try solving
> things by myself in the first place. In fact, I have been all day long
> studying documentation and solving many issues but sometimes easy things
> are bypassed.
It's good that you try and fix things yourself, that's the only way...
However, in this case I think no amount of reading the fltk docs will help; it looks like what you are hitting is a C++ coding issue, rather than something peculiar to fltk.
Note that the fltk label() methods take a char*, whereas you are trying to pass in a C++ string. This is not going to work.
What you want instead is:
boxTopScores->copy_label(strTopScores.c_str());
Note that I am explicitly using copy_label() here rather than just label() as it is not always certain that a C++ string will not change its underlying storage location...
I see that Joe suggested you use strTopScores.data() - in practice .c_str() and .data() are synonyms, but I think that c_str() is better in that it makes it more exlicit that it is a C-style char* that is wanted.
Selex ES Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************