Click here to Skip to main content
15,915,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: web page close event Pin
rp_suman5-Apr-07 21:50
rp_suman5-Apr-07 21:50 
AnswerRe: web page close event Pin
ThatsAlok22-Apr-07 23:30
ThatsAlok22-Apr-07 23:30 
QuestionProblem about the order of SetCaretPos and TextOut Pin
kingliub5-Apr-07 7:33
kingliub5-Apr-07 7:33 
AnswerRe: Problem about the order of SetCaretPos and TextOut Pin
Mark Salsbery5-Apr-07 8:17
Mark Salsbery5-Apr-07 8:17 
GeneralRe: Problem about the order of SetCaretPos and TextOut Pin
kingliub5-Apr-07 19:36
kingliub5-Apr-07 19:36 
GeneralRe: Problem about the order of SetCaretPos and TextOut Pin
Mark Salsbery6-Apr-07 6:32
Mark Salsbery6-Apr-07 6:32 
GeneralRe: Problem about the order of SetCaretPos and TextOut Pin
kingliub6-Apr-07 6:54
kingliub6-Apr-07 6:54 
Questiondouble overflow vc++6 Pin
manolomikasa5-Apr-07 6:12
manolomikasa5-Apr-07 6:12 
hi,

i'm using visual c++ 6.0 and i have an overflow problem
i have to detect overflows from double variables, but i
don't know how to make it using exceptions...

i want to detect overflows in my own functions (not for the math.h functions)

for example, in the factorial function there's an overflow at fact(171):

double fact(long i){

double result;

if (i<0){
result=0.0;
}else if(i==0){
result=1.0;
}else{
result=i;
while (i!=1){
i--;
result=result*i;
}
}

return result;
}

well, there's not a real problem above Smile | :) because i know that exist an overflow at fact(171), but unfortunately Cry | :(( i usually don't know what input parameters cause overflow

can anyone help me?

Thanks.
AnswerRe: double overflow vc++6 Pin
PJ Arends5-Apr-07 8:36
professionalPJ Arends5-Apr-07 8:36 
GeneralRe: double overflow vc++6 Pin
manolomikasa6-Apr-07 7:30
manolomikasa6-Apr-07 7:30 
QuestionDelete records in Recordset in VC Pin
cy163@hotmail.com5-Apr-07 5:39
cy163@hotmail.com5-Apr-07 5:39 
QuestionRe: Delete records in Recordset in VC Pin
David Crow5-Apr-07 5:53
David Crow5-Apr-07 5:53 
AnswerRe: Delete records in Recordset in VC Pin
krmed5-Apr-07 7:22
krmed5-Apr-07 7:22 
QuestionHow to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 5:25
Arris745-Apr-07 5:25 
AnswerRe: How to speed up copy of .txt files into arrays? Pin
led mike5-Apr-07 5:32
led mike5-Apr-07 5:32 
AnswerRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 5:55
Arris745-Apr-07 5:55 
AnswerRe: How to speed up copy of .txt files into arrays? Pin
David Crow5-Apr-07 6:01
David Crow5-Apr-07 6:01 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 6:20
Arris745-Apr-07 6:20 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
led mike5-Apr-07 6:28
led mike5-Apr-07 6:28 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 7:17
Arris745-Apr-07 7:17 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
malaugh5-Apr-07 10:55
malaugh5-Apr-07 10:55 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 11:14
Arris745-Apr-07 11:14 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
David Crow5-Apr-07 6:32
David Crow5-Apr-07 6:32 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 7:19
Arris745-Apr-07 7:19 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
PJ Arends5-Apr-07 8:00
professionalPJ Arends5-Apr-07 8:00 

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.