Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: whats wrong here?? Pin
Steve T26-Jul-01 12:24
Steve T26-Jul-01 12:24 
GeneralOwner Drawn Buttons Pin
Derek Lakin25-Jul-01 23:22
Derek Lakin25-Jul-01 23:22 
GeneralRe: Owner Drawn Buttons Pin
jerry0davis25-Jul-01 23:33
jerry0davis25-Jul-01 23:33 
GeneralRe: Owner Drawn Buttons Pin
Derek Lakin26-Jul-01 1:45
Derek Lakin26-Jul-01 1:45 
GeneralRe: Owner Drawn Buttons Pin
Paolo Messina26-Jul-01 11:37
professionalPaolo Messina26-Jul-01 11:37 
GeneralRe: Owner Drawn Buttons Pin
Derek Lakin26-Jul-01 21:20
Derek Lakin26-Jul-01 21:20 
QuestionECVT() and FCVT()? Pin
Gérald Mercet25-Jul-01 23:11
Gérald Mercet25-Jul-01 23:11 
AnswerRe: ECVT() and FCVT()? Pin
Gerry26-Jul-01 0:12
Gerry26-Jul-01 0:12 
There's plenty of examples on the web & msdn.
int sign=0, decimal=0;
double dval=9999.9999;
char* str;

str = _ecvt(dval, 10, &sign, &decimal);

Easy way.
char buf[21]={0x00};
double dValue = 9.9;
sprintf(buf,"%.2f",dValue);

Only thing to watch is the precision with formatting strings.




Gerry.
GeneralI need Help - Dialog Box Pin
Leezo25-Jul-01 21:47
Leezo25-Jul-01 21:47 
GeneralRe: I need Help - Dialog Box Pin
Christian Graus26-Jul-01 12:50
protectorChristian Graus26-Jul-01 12:50 
Generaldisplay a value in an EDITBOX Pin
Gérald Mercet25-Jul-01 21:34
Gérald Mercet25-Jul-01 21:34 
GeneralRe: display a value in an EDITBOX Pin
Gerry25-Jul-01 22:22
Gerry25-Jul-01 22:22 
GeneralRe: display a value in an EDITBOX Pin
Gérald Mercet25-Jul-01 22:30
Gérald Mercet25-Jul-01 22:30 
GeneralRe: display a value in an EDITBOX Pin
Gerry25-Jul-01 23:09
Gerry25-Jul-01 23:09 
GeneralDatabase size problem. Pin
yamini25-Jul-01 20:58
yamini25-Jul-01 20:58 
GeneralRe: Database size problem. Pin
Gerry25-Jul-01 22:39
Gerry25-Jul-01 22:39 
GeneralDatabase size problem. Pin
yamini25-Jul-01 20:52
yamini25-Jul-01 20:52 
GeneralRe: Database size problem. Pin
Anders Molin25-Jul-01 22:55
professionalAnders Molin25-Jul-01 22:55 
GeneralLooking for Utility Pin
matthias s.25-Jul-01 20:47
matthias s.25-Jul-01 20:47 
GeneralRe: Looking for Utility Pin
Gerry26-Jul-01 1:31
Gerry26-Jul-01 1:31 
GeneralTreeView Pin
Andy Crowney25-Jul-01 20:27
Andy Crowney25-Jul-01 20:27 
GeneralRe: TreeView Pin
Michael Dunn25-Jul-01 21:45
sitebuilderMichael Dunn25-Jul-01 21:45 
GeneralTreeView Pin
Andy Crowney25-Jul-01 20:26
Andy Crowney25-Jul-01 20:26 
GeneralRe: TreeView Pin
Not Active25-Jul-01 20:32
mentorNot Active25-Jul-01 20:32 
GeneralDate algorithm !!! Pin
Hadi Rezaee25-Jul-01 20:20
Hadi Rezaee25-Jul-01 20:20 

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.