convert long -> CString
-
Hi I am trying to convert a long to a CString so that I can concatanate it as shown below
CString tmpMsg = "New CAMA Saved. CAMA ID = " + static_cast(m_NumericCAID.GetValue());
wherem_NumericCAID.GetValue()
returns a long. However I get compile errors. Any ideas on how to convert? Thanks. -
Hi I am trying to convert a long to a CString so that I can concatanate it as shown below
CString tmpMsg = "New CAMA Saved. CAMA ID = " + static_cast(m_NumericCAID.GetValue());
wherem_NumericCAID.GetValue()
returns a long. However I get compile errors. Any ideas on how to convert? Thanks.minkowski wrote:
I am trying to convert a long to a CString so that I can concatanate it as shown below
CString csLongAsString;
long lSomeLongValue = 100L;
csLongAsString.Format( _T( "Long as string: %ld" ), lSomeLongValue );
AfxMessageBox( csLongAsString )
Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com
-
Hi I am trying to convert a long to a CString so that I can concatanate it as shown below
CString tmpMsg = "New CAMA Saved. CAMA ID = " + static_cast(m_NumericCAID.GetValue());
wherem_NumericCAID.GetValue()
returns a long. However I get compile errors. Any ideas on how to convert? Thanks.