Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Pin
Bravoone_200626-Apr-07 3:03
Bravoone_200626-Apr-07 3:03 
GeneralRe: CString Pin
GuyM26-Apr-07 3:05
GuyM26-Apr-07 3:05 
GeneralRe: CString Pin
Cedric Moonen26-Apr-07 3:36
Cedric Moonen26-Apr-07 3:36 
GeneralRe: CString Pin
David Crow26-Apr-07 3:55
David Crow26-Apr-07 3:55 
GeneralRe: CString Pin
toxcct26-Apr-07 7:13
toxcct26-Apr-07 7:13 
GeneralRe: CString Pin
toxcct26-Apr-07 7:15
toxcct26-Apr-07 7:15 
AnswerRe: CString Pin
Bravoone_200626-Apr-07 19:26
Bravoone_200626-Apr-07 19:26 
GeneralRe: CString Pin
cp987626-Apr-07 20:23
cp987626-Apr-07 20:23 
It is almost certainly possible to write your function in one line - but the advice that you are getting from professional programmers here is not to do that. What it does will be the same, the syntax just more complex.

If this is not simple enough for you, find a better way. Before you complain about the solution someone has bothered to give you, engage brain and think of what is involved (having one solution in front of you should help). In this case the simplest way I can see to round the contents of one edit box is to get the string, convert to a floating point representation, round and convert back to a string. If you can find a better way, we have shared one solution with you, please share yours with us.







Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

GeneralRe: CString Pin
GuyM28-Apr-07 20:27
GuyM28-Apr-07 20:27 
QuestionError executing BSCMAKE.exe Pin
Neeraj Sinha26-Apr-07 1:44
Neeraj Sinha26-Apr-07 1:44 
QuestionCan i partition Router or Switch into trusted and untrusted network Pin
sharmaarvind26-Apr-07 1:33
sharmaarvind26-Apr-07 1:33 
AnswerRe: Can i partition Router or Switch into trusted and untrusted network Pin
David Crow26-Apr-07 2:47
David Crow26-Apr-07 2:47 
QuestionExcel Automation - Please help ... Pin
GuyM26-Apr-07 1:31
GuyM26-Apr-07 1:31 
AnswerRe: Excel Automation - Please help ... Pin
Nikhil Trivedi26-Apr-07 2:18
Nikhil Trivedi26-Apr-07 2:18 
AnswerRe: Excel Automation - Please help ... Pin
Nikhil Trivedi26-Apr-07 2:21
Nikhil Trivedi26-Apr-07 2:21 
QuestionRe: Excel Automation - Please help ... Pin
GuyM26-Apr-07 2:31
GuyM26-Apr-07 2:31 
AnswerRe: Excel Automation - Please help ... Pin
Nikhil Trivedi26-Apr-07 3:06
Nikhil Trivedi26-Apr-07 3:06 
AnswerRe: Excel Automation - Please help ... Pin
Roger Stoltz26-Apr-07 3:20
Roger Stoltz26-Apr-07 3:20 
GeneralRe: Excel Automation - Please help ... Pin
GuyM26-Apr-07 3:49
GuyM26-Apr-07 3:49 
GeneralRe: Excel Automation - Please help ... Pin
Roger Stoltz26-Apr-07 4:16
Roger Stoltz26-Apr-07 4:16 
AnswerRe: Excel Automation - Please help ... Pin
David Crow26-Apr-07 4:06
David Crow26-Apr-07 4:06 
QuestionRe: Excel Automation - Please help ... Pin
GuyM26-Apr-07 4:15
GuyM26-Apr-07 4:15 
AnswerRe: Excel Automation - Please help ... Pin
David Crow26-Apr-07 4:24
David Crow26-Apr-07 4:24 
GeneralRe: Excel Automation - Please help ... Pin
hellogany19-Nov-08 17:38
hellogany19-Nov-08 17:38 
GeneralRe: Excel Automation - Please help ... Pin
David Crow20-Nov-08 3:34
David Crow20-Nov-08 3:34 

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.