unsigned long to string
-
Hi previously I asked how to convert string to unsigned long now the reverse is required. How would I convert unsigned long to string? HAVE: unsigned long cnt = FFFF0000; REQUIRE: a string with the value "FFFF0000" suggestions much appreciated Kind Regards Kevin
-
Hi previously I asked how to convert string to unsigned long now the reverse is required. How would I convert unsigned long to string? HAVE: unsigned long cnt = FFFF0000; REQUIRE: a string with the value "FFFF0000" suggestions much appreciated Kind Regards Kevin
-
Hi previously I asked how to convert string to unsigned long now the reverse is required. How would I convert unsigned long to string? HAVE: unsigned long cnt = FFFF0000; REQUIRE: a string with the value "FFFF0000" suggestions much appreciated Kind Regards Kevin
I assume you are using MFC. cnd = 0xFFFF0000; CString strValue; strValue.Format("%X",cnt);
MSN Messenger. prakashnadar@msn.com
-
char acBuffer[128]={0}; sprintf(acBuffer, "%d", uLong); Check the format specification for more info u might need %ud Papa while (TRUE) Papa.WillLove ( Bebe ) ;
-
Hi previously I asked how to convert string to unsigned long now the reverse is required. How would I convert unsigned long to string? HAVE: unsigned long cnt = FFFF0000; REQUIRE: a string with the value "FFFF0000" suggestions much appreciated Kind Regards Kevin
You could use the standard library: unsigned long cnt = 0xFFFF0000; TCHAR tszString[16]; // Arbitrary size _stprintf(tszString, _T("%8.8X"), cnt); Sorry, just read your CString post: CString strString; strString.Format(_T("%8.8X"), cnt);
-
I assume you are using MFC. cnd = 0xFFFF0000; CString strValue; strValue.Format("%X",cnt);
MSN Messenger. prakashnadar@msn.com
-
CString text; text.Format("%ux", cnt); Roger Allen - Sonork 100.10016 Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...