VS 2008, Windows XP Pro, novice VS user.
A vendor supplied API has as its input a string formatted as:
When an error is detected I need to show the argument. I try to put the data in a CString as follows:
I use a message box to show the data but it does not display. In the debugger t_show contains:
except replace the xx with two little squares representing un printable data such as displayed when the string contains "\n"
What do I need to change to get the text of feedback_name into t_show?
Please excuse typos as I cannot copy paste into this forum.
We need to know what a dragon is
before we study its anatomy.
(Bryan Kelly, 2010)
A vendor supplied API has as its input a string formatted as:
Code:
their_function( _bstr_t feedback feedback_name )
When an error is detected I need to show the argument. I try to put the data in a CString as follows:
Code:
CString t_show.Format( L"bad parameter is %s", feedback_name );
Code:
"bad parameter is xx"
What do I need to change to get the text of feedback_name into t_show?
Please excuse typos as I cannot copy paste into this forum.
We need to know what a dragon is
before we study its anatomy.
(Bryan Kelly, 2010)