BRT Community

General Category => General Discussion => Topic started by: karst.drenth on February 15, 2024, 03:07:53 PM

Title: Variables of type "cstring"
Post by: karst.drenth on February 15, 2024, 03:07:53 PM
Hi,

For some projects, I need to have the Text property of an ESD_TextBox to be editable ( I need it a.o. for a OS_Keyboard )
I looked in the Keyboard example and saw the use of "cstring" there. As I wanted so be sure that each instance has it's own storage, I checked the generated code.

To my asthonisment, I saw that in the EVE_Header files "cstring" is just a typedef of "const char*" which in turn means, that I will be writing directly in "some" memory where the default value is kept  :o

Is there anybody out there who can wake me up from this bad dream  ;D I am probably missing something, but can't figure out what.

Greets and already thanks for an answer,
Karst