Johan Schoeman Expert Licensed User Longtime User Jun 17, 2019 #1 The library that I am trying to wrap expects "const char* toDisplay" in one of the methods How do I reference it in the B4R wrapper (in rXXX.h and rXXX.cpp)? I have tried numerous ways but just don't get it.....eg B4X: void B4RSevSeg::DisplayString(ArrayByte* toDisplay, Byte DecAposColon) { bn->DisplayString(toDisplay, DecAposColon); };
The library that I am trying to wrap expects "const char* toDisplay" in one of the methods How do I reference it in the B4R wrapper (in rXXX.h and rXXX.cpp)? I have tried numerous ways but just don't get it.....eg B4X: void B4RSevSeg::DisplayString(ArrayByte* toDisplay, Byte DecAposColon) { bn->DisplayString(toDisplay, DecAposColon); };
Erel B4X founder Staff member Licensed User Longtime User Jun 17, 2019 #2 B4X: bn->DisplayString(toDisplay->data, DecAposColon);