Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPainting RichEditView Pin
nightrider134-Aug-06 14:25
nightrider134-Aug-06 14:25 
QuestionCustom Ctrl error Pin
CodeGoose4-Aug-06 13:16
CodeGoose4-Aug-06 13:16 
QuestionSmall Error Pin
Falconite7774-Aug-06 12:35
Falconite7774-Aug-06 12:35 
AnswerRe: Small Error Pin
Graham Shanks4-Aug-06 14:02
Graham Shanks4-Aug-06 14:02 
QuestionVisual Studio Question Pin
JKallen4-Aug-06 12:17
JKallen4-Aug-06 12:17 
AnswerRe: Visual Studio Question Pin
Michael Dunn4-Aug-06 13:41
sitebuilderMichael Dunn4-Aug-06 13:41 
AnswerRe: Visual Studio Question Pin
Steve Weeks4-Aug-06 17:35
Steve Weeks4-Aug-06 17:35 
QuestionVisual Studio 2003 Debugger and Execptions [modified] Pin
kpeng14-Aug-06 11:39
kpeng14-Aug-06 11:39 
Hi,

I have a big code base that has been developed for a while. Unfortunately, they did not use exceptions at all for floating point divde by zero. Fortunately, when I was using visual studio 6.0 I was able to get the debugger to jump in when such an exception occurs.

The problem is now we are migrating to visual studio 2003. There is an option to have the debugger jump in when a floating point divde by zero occurs (debug->execeptions or crtl+alt+e), but it does not seem to be working, atleast for a blank console application. Could this be because the application is a console application and not a win32 application? Or can we not rely on the debugger.

This is the simple program I used to test:
int main()
{
double x = 5.0;
double y = 0.0;
double z = x/y;
return 0;
}

What should occur is that the debugger should do something when it see x/y by jumping in. I have the option enabled: c000008e Floating-point division by zero and I set it to break into the debugger if the exception is not handled.

I know that we should be using try catches, but this is to test and algorithm and once again the code base is huge.


-- modified at 17:39 Friday 4th August, 2006
AnswerRe: Visual Studio 2003 Debugger and Execptions [modified] Pin
kpeng18-Aug-06 12:41
kpeng18-Aug-06 12:41 
QuestionHow does AfxGetApp() work? Pin
Ali Tavakol4-Aug-06 11:28
Ali Tavakol4-Aug-06 11:28 
AnswerRe: How does AfxGetApp() work? Pin
PJ Arends4-Aug-06 16:39
professionalPJ Arends4-Aug-06 16:39 
AnswerRe: How does AfxGetApp() work? Pin
Joe Woodbury4-Aug-06 16:40
professionalJoe Woodbury4-Aug-06 16:40 
Question"hard-wired" in C++ Pin
Jay034-Aug-06 10:10
Jay034-Aug-06 10:10 
AnswerRe: "hard-wired" in C++ Pin
RChin4-Aug-06 11:14
RChin4-Aug-06 11:14 
AnswerRe: "hard-wired" in C++ Pin
Ravi Bhavnani4-Aug-06 11:53
professionalRavi Bhavnani4-Aug-06 11:53 
AnswerRe: "hard-wired" in C++ Pin
Rilhas6-Aug-06 3:39
Rilhas6-Aug-06 3:39 
QuestionVisual Studio Net 2003 does not catch divide by zero with doubles Pin
kpeng14-Aug-06 6:45
kpeng14-Aug-06 6:45 
AnswerRe: Visual Studio Net 2003 does not catch divide by zero with doubles Pin
Zac Howland4-Aug-06 7:03
Zac Howland4-Aug-06 7:03 
AnswerRe: Visual Studio Net 2003 does not catch divide by zero with doubles Pin
Chris Losinger4-Aug-06 7:04
professionalChris Losinger4-Aug-06 7:04 
AnswerRe: Visual Studio Net 2003 does not catch divide by zero with doubles [modified] Pin
Sarath C4-Aug-06 7:09
Sarath C4-Aug-06 7:09 
AnswerRe: Visual Studio Net 2003 does not catch divide by zero with doubles Pin
David Crow4-Aug-06 7:50
David Crow4-Aug-06 7:50 
AnswerRe: Visual Studio Net 2003 does not catch divide by zero with doubles Pin
kpeng14-Aug-06 8:14
kpeng14-Aug-06 8:14 
GeneralRe: Visual Studio Net 2003 does not catch divide by zero with doubles Pin
Zac Howland4-Aug-06 8:36
Zac Howland4-Aug-06 8:36 
AnswerRe: Visual Studio Net 2003 does not catch divide by zero with doubles Pin
Joe Woodbury4-Aug-06 16:42
professionalJoe Woodbury4-Aug-06 16:42 
Questionbad pointer Pin
jon-804-Aug-06 6:15
professionaljon-804-Aug-06 6:15 

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.