|
-
Sep 19th, 2002, 04:57 AM
#1
Thread Starter
Member
closing windows in VC++
do u all know how to close a window in VC++???
cos my program is connect to 1 PLC (controller hardware) and if there's no more connection (when i take the plug out) with the machine, they will show a messagebox sayin' "connection timeout error",,, i dun want the program t show that error message,,,,
i tried to catch that exception but couldn't,,,,,,
in debug window, they show "uncaught exception"!!!!!!!
so is there any way to solve this kind of error......?????
or how can i CLOSE any window or message boxes that's gonna pop up other than the main window???.....
pls help......
THANKS ........ =O)
-
Sep 19th, 2002, 05:02 AM
#2
How did you try to catch the exception?
catch(...)
should be able to catch it, as well as
_except()
but you have to read about the usage of _try _except blocks
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 19th, 2002, 05:04 AM
#3
Thread Starter
Member
the debugger says "Uncaught Exception"
so i dunno which exception to catch... :~(
-
Sep 19th, 2002, 05:51 AM
#4
catch(...) should catch every exception, even access violations
_except is more complicated, but should catch every exception too.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|