Click here to Skip to main content
15,884,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do test dll which is created in C Pin
mohant$.net8-Sep-09 0:17
mohant$.net8-Sep-09 0:17 
GeneralRe: How do test dll which is created in C Pin
Selvam R8-Sep-09 0:23
professionalSelvam R8-Sep-09 0:23 
QuestionDouble getlength Pin
Davitor7-Sep-09 20:03
Davitor7-Sep-09 20:03 
AnswerRe: Double getlength Pin
Cedric Moonen7-Sep-09 20:24
Cedric Moonen7-Sep-09 20:24 
GeneralRe: Double getlength Pin
Davitor7-Sep-09 20:37
Davitor7-Sep-09 20:37 
GeneralRe: Double getlength Pin
Cedric Moonen7-Sep-09 20:52
Cedric Moonen7-Sep-09 20:52 
GeneralRe: Double getlength Pin
Davitor7-Sep-09 21:04
Davitor7-Sep-09 21:04 
GeneralRe: Double getlength Pin
Cedric Moonen7-Sep-09 21:11
Cedric Moonen7-Sep-09 21:11 
Davitor wrote:
But i want to convert same values like if double tr=98.29982355 then i want to convert Cstring str=98.29982355 and when tr=9.89 then str=9.89.
So i think if i have a length of double then it's make to easy.


Well, but that's what I was explaining: tr=98.29982355, in that specific case, it is very probable that your double will be stored with some imprecision (for instance tr=98.299823499999999). There's no way for the computer to guess which precision you want to keep, that's up to you to tell to the computer where the number should be rounded when converting to string. I suggest you read this article[^] about floating point precision.

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: Double getlength Pin
CPallini7-Sep-09 21:20
mveCPallini7-Sep-09 21:20 
Questionwhat happend if i give codes in between #if 0 and #endif Pin
tagopi7-Sep-09 19:31
tagopi7-Sep-09 19:31 
AnswerRe: what happend if i give codes in between #if 0 and #endif Pin
Naveen7-Sep-09 19:52
Naveen7-Sep-09 19:52 
AnswerRe: what happend if i give codes in between #if 0 and #endif Pin
CPallini7-Sep-09 21:14
mveCPallini7-Sep-09 21:14 
QuestionStrings in the code Pin
Nick_1117-Sep-09 19:03
Nick_1117-Sep-09 19:03 
AnswerRe: Strings in the code Pin
Naveen7-Sep-09 20:21
Naveen7-Sep-09 20:21 
AnswerRe: Strings in the code Pin
Iain Clarke, Warrior Programmer7-Sep-09 21:03
Iain Clarke, Warrior Programmer7-Sep-09 21:03 
GeneralRe: Strings in the code Pin
Michael Schubert7-Sep-09 22:30
Michael Schubert7-Sep-09 22:30 
AnswerRe: Strings in the code Pin
CPallini7-Sep-09 21:10
mveCPallini7-Sep-09 21:10 
AnswerRe: Strings in the code Pin
Michael Schubert7-Sep-09 22:34
Michael Schubert7-Sep-09 22:34 
QuestionClosing of dialog box crashes application Pin
Le@rner7-Sep-09 18:12
Le@rner7-Sep-09 18:12 
AnswerRe: Closing of dialog box crashes application Pin
theCPkid7-Sep-09 18:31
theCPkid7-Sep-09 18:31 
GeneralRe: Closing of dialog box crashes application Pin
Le@rner7-Sep-09 18:34
Le@rner7-Sep-09 18:34 
QuestionSet the text of spincontrol( Updown control) using sendmessage Pin
Bedke7-Sep-09 18:07
Bedke7-Sep-09 18:07 
AnswerRe: Set the text of spincontrol( Updown control) using sendmessage Pin
Selvam R8-Sep-09 0:20
professionalSelvam R8-Sep-09 0:20 
GeneralRe: Set the text of spincontrol( Updown control) using sendmessage Pin
Bedke8-Sep-09 0:25
Bedke8-Sep-09 0:25 
QuestionSetWindowPos API doubt Pin
theCPkid7-Sep-09 15:47
theCPkid7-Sep-09 15:47 

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.