p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Visual C++ (http://p2p.wrox.com/forumdisplay.php?f=88)
-   -   converting double to text in editbox (http://p2p.wrox.com/showthread.php?t=52870)

rupali_mb January 18th, 2007 02:47 AM

converting double to text in editbox
 
how to convert double to text in editbox using setdlgitemtext method ?


vampirekiss February 11th, 2007 12:14 PM

Like this..


    double pi = 3.1415026;
    CString str;
    str.Format("%8.7f",pi);
    SetDlgItemText(IDC_BtnTest,str);



All times are GMT -4. The time now is 01:16 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.