The return of the text of Label to be specific.. As I was working on CMenuItem, I strangely found myself having the most problems with this simple task, within the const char* Text(); method. Eventually I realized that of course! Returning the text of CLabel is simply returning the data. So this is the code I ended up with:
const char* CMenuItem ::Text(){
return (const char*)Label.data();
}
Very simple task, yet strangely difficult to come with up a solution for. Typical C++!