Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Questions aobut CString...

Status
Not open for further replies.

suphy

Programmer
Jul 26, 2001
1
HK
Can CString accept double value?
like, if I have a double variable, result = 123.2323
I want to display the value in the static text in MFC, which is in the CString data type. What should I do?
 
You want to use

CString s;

s.Format("%f",double_value);


Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top