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

C / C++ / MFC

 
QuestionCFileDialog Pin
samira forooghi4-Jul-07 20:32
samira forooghi4-Jul-07 20:32 
AnswerRe: CFileDialog Pin
CPallini4-Jul-07 21:07
mveCPallini4-Jul-07 21:07 
GeneralRe: CFileDialog Pin
samira forooghi4-Jul-07 21:12
samira forooghi4-Jul-07 21:12 
QuestionReturning byte array from ActiveX Pin
Vadim Tabakman4-Jul-07 19:57
Vadim Tabakman4-Jul-07 19:57 
QuestionClient and Server communication !! [modified] Pin
ashachandu4-Jul-07 19:42
ashachandu4-Jul-07 19:42 
AnswerRe: Client and Server communication !! Pin
VishuABCDEFG4-Jul-07 23:13
VishuABCDEFG4-Jul-07 23:13 
Question[Message Deleted] Pin
Jayapal Chandran4-Jul-07 19:41
Jayapal Chandran4-Jul-07 19:41 
AnswerRe: Writing global hooks in Dev-c++ IDE Pin
CPallini4-Jul-07 21:15
mveCPallini4-Jul-07 21:15 
GeneralRe: Writing global hooks in Dev-c++ IDE Pin
Jayapal Chandran9-Jul-07 18:39
Jayapal Chandran9-Jul-07 18:39 
QuestionRe: Writing global hooks in Dev-c++ IDE Pin
David Crow5-Jul-07 2:52
David Crow5-Jul-07 2:52 
AnswerRe: Pragma dataseg for dll's Pin
Mark Salsbery5-Jul-07 8:39
Mark Salsbery5-Jul-07 8:39 
QuestionFree Resource?? Pin
thenewbee4-Jul-07 19:15
thenewbee4-Jul-07 19:15 
AnswerRe: Free Resource?? Pin
_AnsHUMAN_ 4-Jul-07 19:41
_AnsHUMAN_ 4-Jul-07 19:41 
AnswerRe: Free Resource?? Pin
Hamid_RT4-Jul-07 19:43
Hamid_RT4-Jul-07 19:43 
GeneralRe: Free Resource?? Pin
thenewbee4-Jul-07 21:34
thenewbee4-Jul-07 21:34 
QuestionRe: Free Resource?? Pin
Hamid_RT4-Jul-07 22:26
Hamid_RT4-Jul-07 22:26 
AnswerRe: Free Resource?? Pin
thenewbee5-Jul-07 1:51
thenewbee5-Jul-07 1:51 
QuestionRe: Free Resource?? Pin
David Crow5-Jul-07 2:53
David Crow5-Jul-07 2:53 
AnswerRe: Free Resource?? Pin
thenewbee5-Jul-07 19:25
thenewbee5-Jul-07 19:25 
QuestionCreating table/report using data in Oracle database Pin
__yash__4-Jul-07 19:04
professional__yash__4-Jul-07 19:04 
QuestionSocket Pin
shakumar_224-Jul-07 18:57
shakumar_224-Jul-07 18:57 
AnswerRe: Socket [modified] Pin
Nuxser4-Jul-07 19:36
Nuxser4-Jul-07 19:36 
Questionextracting the decimal places ..... ????? Pin
Zealous_Me4-Jul-07 13:20
Zealous_Me4-Jul-07 13:20 
hey pals, i was trying to extract the decimal places out of a "long double" type variable and then store them in an "integer" type variable.
First I stored the long double value in a long integer type value then I subtracted the long integer value from the original long double value, thus, I got the decimal portion of the long double value and I stored tis decimal part into a separate variable.
Now, I under a while loop (which ran uptill the value in the variable holding the decimal part didn't became zero) I multiplied the decimal value holding variable by 10 and stored result in a temporary long double variable, I then copied this new value into an integer variable and subtracted the integer value from the new long double value that left me with one less digit after decimal as i was having initially. NOW until the value of the temporary long double variable doesn't becomes zero this loop runs but this loop is running more number of times as desired. After the value ends in the temporary long double variable, this variable takes up a value = 2.55351e-15 and keeps on running.

How to avoid this ? ? ??????????????????????????????????

AnswerRe: extracting the decimal places ..... ????? Pin
David Crow5-Jul-07 2:59
David Crow5-Jul-07 2:59 
AnswerRe: extracting the decimal places ..... ????? Pin
Mark Salsbery5-Jul-07 8:48
Mark Salsbery5-Jul-07 8:48 

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.