Sep 18, 2001 #1 TheCrappyProgrammer Programmer Joined Sep 17, 2001 Messages 41 Location US How do I convert an Integer to a String in MFC?
Sep 18, 2001 #2 raochetan Programmer Joined Aug 20, 2001 Messages 62 Location IN As per my knowledge, there is no standard function in MFC to convert an interger to string. You will have use _itoa() function. int num = 10; char ch[7]; _itoa(num, ch, 10); CString str(ch); Hope this is what u want. raochetan Upvote 0 Downvote
As per my knowledge, there is no standard function in MFC to convert an interger to string. You will have use _itoa() function. int num = 10; char ch[7]; _itoa(num, ch, 10); CString str(ch); Hope this is what u want. raochetan
Sep 18, 2001 Thread starter #3 TheCrappyProgrammer Programmer Joined Sep 17, 2001 Messages 41 Location US Yep Upvote 0 Downvote
Sep 19, 2001 #4 MaxHeadroom Technical User Joined Jun 16, 2003 Messages 6 Location IE Hey, here's an alternative approach :-D: int iNumber = 10; CString szString; szString.Format("%d", iNumber); MaxHeadroom Upvote 0 Downvote
Hey, here's an alternative approach :-D: int iNumber = 10; CString szString; szString.Format("%d", iNumber); MaxHeadroom