void TATTDataset::AckErrHandler(const NDataString& ErrMsg)
{
system("echo ErrMsg: %s >> err", (const char *)ErrMsg);
...... code .......
}
What does this error message mean? How do I resolve it? ErrMsg.toCString() doesn't help either. Any suggestion?
EDIT:
I edited the code as suggested -
String s;
Char *tmpStr = ErrMsg.ToCString();
s.Format("echo ErrMsg: %s >> err",tmpStr);
system(s);
Still I get: Cannot initialize 'char *' with 'const char *'. Char *tmpStr = ErrMsg.ToCString();