?
Solved

Catching System Errors

Posted on 1999-01-26
3
Medium Priority
?
238 Views
Last Modified: 2010-04-16
How can I capture a windows system error with borland c++ 3.1 for windows?  
0
Comment
Question by:dondiego
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1185208
Does Borland C++ 3.1 support "Structured Exception Handling"  (Look it up on the help).
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1185209
Structured exception handling is Win32 specific and hence does not exist in BC 3.1.

You will need to use the ToolHelp function: NotifyRegister() to catch windows error. You should also look into SetErrorMode() to catch other types of errors.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1185210
>> Structured exception handling is Win32 specific and hence does not exist in BC 3.1.
Why not?  Doesn't BC 3.1 produce win32 apps?
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question