In VB, there is an easy way to change a numerical value into a string and vice versa. I can't seem to find a c++ equivalent?
What I want to do is include a float variable in a CString in a MessageBox - for example
float m_number1
answer = (m_number1 * 3.141592 );
CString strMessage;
strMessage.Format("The area of your circle is (%d) ." ,answer);
MessageBox(strMessage);
Which doesn't seem to work?
Thanks!!
What I want to do is include a float variable in a CString in a MessageBox - for example
float m_number1
answer = (m_number1 * 3.141592 );
CString strMessage;
strMessage.Format("The area of your circle is (%d) ." ,answer);
MessageBox(strMessage);
Which doesn't seem to work?
Thanks!!