About Store Forum Documentation Contact
Donations:
364$/mo



Post Reply 
small bug report
Author Message
Argoon Offline
Member

Post: #1
small bug report
Hello when trying to compile the GUI Tabs tutorial code, it errors at line 23 with
- cannot convert from "const char" to "cchar *"

I'm a beginner in coding and c/c++ so sorry if this is not correct but what I did solved the problem... pfft

This code makes a error:
Code:
cchar  *tab[]=
   {
      "First",
      "Second",
      "Third",
   };

I changed it to

Code:
cchar8  *tab[]=
   {
      "First",
      "Second",
      "Third",
   };

and the demo compiled.

I assume is because this part of the code:

Code:
window+=tabs  .create(Rect_LU(0, 0, window.clientWidth(), 0.08f), 0, tab, Elms(tab)); // create tabs

expects a pointer to a cchar8 * at the third argument?
03-18-2019 06:52 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: small bug report
Thank you very much, bug has been fixed
03-19-2019 05:06 AM
Find all posts by this user Quote this message in a reply
Argoon Offline
Member

Post: #3
RE: small bug report
No problem smile
03-19-2019 01:32 PM
Find all posts by this user Quote this message in a reply
Post Reply