Click here to Skip to main content
15,922,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ordianl error in MFC dll Pin
Apollo102411-Jul-03 14:19
Apollo102411-Jul-03 14:19 
GeneralRe: Ordianl error in MFC dll Pin
KaЯl11-Jul-03 12:17
KaЯl11-Jul-03 12:17 
GeneralRe: Ordianl error in MFC dll Pin
Toni7811-Jul-03 12:41
Toni7811-Jul-03 12:41 
GeneralRe: Ordianl error in MFC dll Pin
John M. Drescher11-Jul-03 17:45
John M. Drescher11-Jul-03 17:45 
GeneralRe: Ordianl error in MFC dll Pin
hongge11-Jul-03 20:36
hongge11-Jul-03 20:36 
GeneralDynamically change SAPI grammar file Pin
clmckinley11-Jul-03 10:30
clmckinley11-Jul-03 10:30 
General:-D VST hosting Pin
Mad Docs Hairy Belly11-Jul-03 10:06
Mad Docs Hairy Belly11-Jul-03 10:06 
QuestionLimiting display of decimal places? Pin
cbruno11-Jul-03 9:44
cbruno11-Jul-03 9:44 
Hi all...

First off, I'd like to thank all whom contribute to this board - it has been an extremely valuable resource for me - a non-programming expert.

I'm a mechanical engineer by trade but have written Visual C++ apps for quite some time; sometimes for fun, sometimes for timesaving. Right now, I'm developing an application that performs some extensive linkage analysis on motorcycle suspensions. As such, I'm using primarily "double" variables.

In the past, when I needed to display these values in my window, I could convert them to a string and write them to a text box and control their format. This time, however, I have simply set the on screen edit box variables as doubles and have direct relationships between my screen variables and my calculation variables to make screen updates and retrieving data from the screen easier/quicker.

However, now when I display the values on the screen, they're written out to some god-awful number of decimal places. Is there an easy way of limiting an edit box's number of decimal places when you do an UpdateData ?

Sorry that this is probably a very lame question, but your assistance is much appreciated.

-Chris
http://www.slideruleracing.com

AnswerRe: Limiting display of decimal places? Pin
Mike Dimmick11-Jul-03 9:56
Mike Dimmick11-Jul-03 9:56 
AnswerRe: Limiting display of decimal places? Pin
David Crow11-Jul-03 10:34
David Crow11-Jul-03 10:34 
GeneralCustomizing CColorDialog Pin
mcguile25711-Jul-03 9:21
mcguile25711-Jul-03 9:21 
GeneralStrange Behaviour of GetAdaptersInfo() Pin
Hashim Saleem11-Jul-03 9:01
Hashim Saleem11-Jul-03 9:01 
GeneralProblem accessing remote datasource Pin
Terry O'Nolley11-Jul-03 7:51
Terry O'Nolley11-Jul-03 7:51 
Questionwhat function will convert a char to its number value Pin
johnstonsk11-Jul-03 7:39
johnstonsk11-Jul-03 7:39 
AnswerRe: what function will convert a char to its number value Pin
John M. Drescher11-Jul-03 7:43
John M. Drescher11-Jul-03 7:43 
GeneralRe: what function will convert a char to its number value Pin
johnstonsk11-Jul-03 7:56
johnstonsk11-Jul-03 7:56 
GeneralRe: what function will convert a char to its number value Pin
John M. Drescher11-Jul-03 7:59
John M. Drescher11-Jul-03 7:59 
AnswerRe: what function will convert a char to its number value Pin
Shay Harel11-Jul-03 7:45
Shay Harel11-Jul-03 7:45 
GeneralRe: what function will convert a char to its number value Pin
johnstonsk11-Jul-03 7:54
johnstonsk11-Jul-03 7:54 
GeneralRe: what function will convert a char to its number value Pin
John M. Drescher11-Jul-03 7:56
John M. Drescher11-Jul-03 7:56 
GeneralRe: what function will convert a char to its number value Pin
johnstonsk11-Jul-03 7:59
johnstonsk11-Jul-03 7:59 
GeneralRe: what function will convert a char to its number value Pin
John M. Drescher11-Jul-03 8:02
John M. Drescher11-Jul-03 8:02 
AnswerRe: what function will convert a char to its number value Pin
John R. Shaw11-Jul-03 9:21
John R. Shaw11-Jul-03 9:21 
AnswerRe: what function will convert a char to its number value Pin
Terry O'Nolley11-Jul-03 9:27
Terry O'Nolley11-Jul-03 9:27 
GeneralRe: Whoops Pin
John R. Shaw11-Jul-03 10:15
John R. Shaw11-Jul-03 10:15 

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.