Displaying Doubles
-
Hi, i have a question abt displaying doubles. Under _MBCS the following codes work but how do i display the double under Unicode? Thanks! char *buffer; int decimal, sign; buffer = _ecvt( m_Height, 5, &decimal, &sign ); AfxMessageBox(buffer); or int decimal, sign; AfxMessageBox(_ecvt(m_Height, 5, &decimal, &sign);
-
Hi, i have a question abt displaying doubles. Under _MBCS the following codes work but how do i display the double under Unicode? Thanks! char *buffer; int decimal, sign; buffer = _ecvt( m_Height, 5, &decimal, &sign ); AfxMessageBox(buffer); or int decimal, sign; AfxMessageBox(_ecvt(m_Height, 5, &decimal, &sign);
Use a character set conversion macro on the return:
USES_CONVERSION; //... AfxMessageBox ( A2CT(buffer) );
--Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Ericahist updated (again) Sep 6!