?
Solved

double to CString

Posted on 2003-10-27
1
Medium Priority
?
5,975 Views
Last Modified: 2013-11-20
Can i donvert "double" to "CString" ???
0
Comment
Question by:p_vladimir
1 Comment
 
LVL 19

Accepted Solution

by:
Dexstar earned 120 total points
ID: 9628291
p_vladimir:

     CString str;
     double  d = 3.5;

     str.Format( _T("%f"), d );

Format works like printf, and puts the formatted string into "str".

Hope that helps,
Dex*
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question