gprentice Messages: 260 Registered: November 2005 Location: New Zealand
Experienced Member
From looking at String source code, it stores a null at the end of a string and has an operator funciton returning const char * so you can actually just use your string object anywhere a const char * is needed - or you could explicitly cast it.
(Maybe Mirek can confirm the null termination is always there ...)
void gp1(const char * p)
{
PromptOK(p);
}
void HelloWorld::About()
{
PromptOK("{{1@5 [@9= This is the]::@2 [A5@0 Ultimate`+`+ Hello world sample}}");