Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralC++ casting/converting a class to its sibiling Pin
kk_mfc18-Apr-08 6:43
kk_mfc18-Apr-08 6:43 
GeneralRe: C++ casting/converting a class to its sibiling Pin
led mike18-Apr-08 6:55
led mike18-Apr-08 6:55 
GeneralRe: C++ casting/converting a class to its sibiling Pin
Matthew Faithfull18-Apr-08 6:59
Matthew Faithfull18-Apr-08 6:59 
GeneralRe: C++ casting/converting a class to its sibiling Pin
kk_mfc18-Apr-08 7:09
kk_mfc18-Apr-08 7:09 
GeneralRe: C++ casting/converting a class to its sibiling Pin
Hamid_RT18-Apr-08 18:28
Hamid_RT18-Apr-08 18:28 
GeneralSubclass popupmenu in another app Pin
Rahvin18-Apr-08 6:10
Rahvin18-Apr-08 6:10 
GeneralQuestion about CString Format Pin
KellyR18-Apr-08 5:19
KellyR18-Apr-08 5:19 
GeneralRe: Question about CString Format [modified] Pin
David Crow18-Apr-08 5:30
David Crow18-Apr-08 5:30 
KellyR wrote:
How do I make it print so that it shaves off the extra zeroes at the end?


Assuming you want three places after the decimal, use:

strTemp.Format(TEXT("%.3f"), fVal);
If, however, you are wanting to remove all trailing zeros regardless of how many, see the TrimRight() method.

"Love people and use things, not love things and use people." - Unknown

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


modified on Friday, April 18, 2008 11:58 AM

GeneralRe: Question about CString Format Pin
CPallini18-Apr-08 5:35
mveCPallini18-Apr-08 5:35 
QuestionRe: Question about CString Format Pin
David Crow18-Apr-08 5:43
David Crow18-Apr-08 5:43 
GeneralRe: Question about CString Format Pin
KellyR18-Apr-08 5:50
KellyR18-Apr-08 5:50 
GeneralRe: Question about CString Format Pin
David Crow18-Apr-08 5:57
David Crow18-Apr-08 5:57 
GeneralRe: Question about CString Format Pin
CPallini18-Apr-08 6:32
mveCPallini18-Apr-08 6:32 
GeneralRe: Question about CString Format Pin
David Crow18-Apr-08 7:00
David Crow18-Apr-08 7:00 
GeneralRe: Question about CString Format Pin
CPallini18-Apr-08 5:31
mveCPallini18-Apr-08 5:31 
AnswerRe: Question about CString Format Pin
KellyR18-Apr-08 5:49
KellyR18-Apr-08 5:49 
QuestionHow to use the functions from DLL files Pin
pl_kode18-Apr-08 5:03
pl_kode18-Apr-08 5:03 
GeneralRe: How to use the functions from DLL files Pin
Hamid_RT18-Apr-08 5:12
Hamid_RT18-Apr-08 5:12 
GeneralRe: How to use the functions from DLL files Pin
CPallini18-Apr-08 5:26
mveCPallini18-Apr-08 5:26 
QuestionHow to get all controls of current dialog? Pin
mehmetned18-Apr-08 4:38
mehmetned18-Apr-08 4:38 
AnswerRe: How to get all controls of current dialog? Pin
David Crow18-Apr-08 4:49
David Crow18-Apr-08 4:49 
AnswerRe: How to get all controls of current dialog? Pin
Hamid_RT18-Apr-08 5:14
Hamid_RT18-Apr-08 5:14 
GeneralRe: How to get all controls of current dialog? Pin
mehmetned21-Apr-08 2:58
mehmetned21-Apr-08 2:58 
GeneralRe: How to get all controls of current dialog? Pin
Hamid_RT21-Apr-08 19:27
Hamid_RT21-Apr-08 19:27 
GeneralRe: How to get all controls of current dialog? Pin
ThatsAlok30-Jun-09 23:28
ThatsAlok30-Jun-09 23:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.