Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2007, 02:47 AM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default converting double to text in editbox

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

 
Old February 11th, 2007, 12:14 PM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Like this..


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






Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i get rid off the double quote in a text myer75 VBScript 7 April 14th, 2009 07:11 PM
Showing single and double quote in text field. ggriffit SQL Server ASP 4 January 5th, 2004 11:19 AM
Storing single and double quotes in text roniestein Access 4 December 30th, 2003 05:09 PM
Double search using an input text box Karel Access VBA 2 October 25th, 2003 10:29 PM
Editbox with Date format awhittaker Visual C++ 1 August 30th, 2003 02:36 AM





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