I guess that your project is set to Unicode.
based. These Unicode chars are 16 bit wide and ASCII characters (codes 0x00 to 0x7f) have the high byte cleared. But your micro controller probably expects ASCII characters and the cleared high byte is treated as the end of string indicator.
The simplest solution would be using the
indicates that it is an ANSI string:
double dTT126 = (m_nSliderTT126/8.4)-3.81;
SDSWriteFIFO(Ident, (const unsigned char*)strTT126.GetString());
Note also that I have used the
member function to pass the string. This can be used when the
parameter is of type
const unsigned char*
If the parameter is not const and that is a function written by you, try to make that parameter const. Otherwise you have to use
instead as already used. But then don't forget to call
LPSTR buf = strTT126.GetBuffer(strTT126.GetLength());
SDSWriteFIFO(Ident, (unsigned char*)buf);