Solved

Catching System Errors

Posted on 1999-01-26
3
234 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
  • 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

809 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