1
General Discussion / Variables of type "cstring"
« 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
Is there anybody out there who can wake me up from this bad dream
I am probably missing something, but can't figure out what.
Greets and already thanks for an answer,
Karst
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

Is there anybody out there who can wake me up from this bad dream

Greets and already thanks for an answer,
Karst