Results 1 to 4 of 4

Thread: closing windows in VC++

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    in e middle of nowhere..
    Posts
    40

    Exclamation 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)

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    in e middle of nowhere..
    Posts
    40
    the debugger says "Uncaught Exception"
    so i dunno which exception to catch... :~(

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width