Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What is dlg subclass ? Pin
David Crow2-Jul-07 8:32
David Crow2-Jul-07 8:32 
AnswerRe: What is dlg subclass ? Pin
Mark Salsbery2-Jul-07 9:06
Mark Salsbery2-Jul-07 9:06 
GeneralRe: What is dlg subclass ? Pin
prithaa3-Jul-07 0:36
prithaa3-Jul-07 0:36 
GeneralRe: What is dlg subclass ? Pin
Mark Salsbery3-Jul-07 5:50
Mark Salsbery3-Jul-07 5:50 
GeneralRe: What is dlg subclass ? Pin
prithaa3-Jul-07 23:35
prithaa3-Jul-07 23:35 
GeneralRe: What is dlg subclass ? Pin
Mark Salsbery4-Jul-07 6:20
Mark Salsbery4-Jul-07 6:20 
QuestionA simple question Pin
paulosuckow2-Jul-07 7:29
paulosuckow2-Jul-07 7:29 
QuestionInfinite value in C++ Pin
includeh102-Jul-07 6:18
includeh102-Jul-07 6:18 
in my program, i need to hold infinite value in a string.

it is very easy for normal value, ie.
char*psz="33.33" is a string which holds value 33.33, because we can use atof() function to get the value 33.33 from "33.33".

but, how to hold infinite value in a string?

following is my test:

//----------------------------
CString cs;

double db1=1/sin(0);
cs.Format("%f",db1);
double db2=atof(cs);

//-------------------------
cs is displayed as "1.#INF00"
value of db2 is 1.00

we can explain why atof("1.#INF00") is 1.00 for code above.

but how to hold the infinite value db1 in a string "..." so that its value can be re-generated by atof("...") function?



AnswerRe: Infinite value in C++ Pin
Eytukan2-Jul-07 6:22
Eytukan2-Jul-07 6:22 
GeneralRe: Infinite value in C++ Pin
includeh102-Jul-07 6:38
includeh102-Jul-07 6:38 
GeneralRe: Infinite value in C++ Pin
Hamid_RT2-Jul-07 7:52
Hamid_RT2-Jul-07 7:52 
GeneralRe: Infinite value in C++ Pin
includeh102-Jul-07 8:30
includeh102-Jul-07 8:30 
GeneralRe: Infinite value in C++ Pin
Hamid_RT2-Jul-07 9:16
Hamid_RT2-Jul-07 9:16 
AnswerRe: Infinite value in C++ Pin
David Crow2-Jul-07 8:36
David Crow2-Jul-07 8:36 
Questionresizing child windows Pin
sdancer752-Jul-07 5:30
sdancer752-Jul-07 5:30 
AnswerRe: resizing child windows Pin
David Crow2-Jul-07 5:34
David Crow2-Jul-07 5:34 
AnswerRe: resizing child windows Pin
Mark Salsbery2-Jul-07 5:53
Mark Salsbery2-Jul-07 5:53 
GeneralRe: resizing child windows Pin
sdancer752-Jul-07 22:17
sdancer752-Jul-07 22:17 
AnswerRe: resizing child windows Pin
Hamid_RT2-Jul-07 7:54
Hamid_RT2-Jul-07 7:54 
QuestionRTL Pin
Try2-Jul-07 4:55
Try2-Jul-07 4:55 
AnswerRe: RTL Pin
katreddi.lakshmi16-Jun-10 2:21
katreddi.lakshmi16-Jun-10 2:21 
Questionpointer problem :) Pin
ajitatif angajetor2-Jul-07 4:34
ajitatif angajetor2-Jul-07 4:34 
AnswerRe: pointer problem :) Pin
CPallini2-Jul-07 5:14
mveCPallini2-Jul-07 5:14 
AnswerRe: pointer problem :) Pin
Hans Dietrich2-Jul-07 7:39
mentorHans Dietrich2-Jul-07 7:39 
AnswerRe: pointer problem :) Pin
ajitatif angajetor3-Jul-07 0:51
ajitatif angajetor3-Jul-07 0:51 

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.