Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. Example code for exception handling without MFC

Example code for exception handling without MFC

Scheduled Pinned Locked Moved Article Writing
c++tutorialquestion
2 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I would love to see some code that demostrates the proper way to throw and catch exceptions without using MFC. I am supposed to derive my own class from std::exception, use with win32 command RaiseException() or do I just create my own exception class. Which is the preferred method?

    M 1 Reply Last reply
    0
    • L Lost User

      I would love to see some code that demostrates the proper way to throw and catch exceptions without using MFC. I am supposed to derive my own class from std::exception, use with win32 command RaiseException() or do I just create my own exception class. Which is the preferred method?

      M Offline
      M Offline
      Mike Junkin
      wrote on last edited by
      #2

      I'm not sure if this is a subscription area of the Microsoft site or not (I access it through work where we have access to both) but there's a great series of articles that discusses C++ exceptions. Everything you want to know about exceptions and more - it's a 17 part series. http://msdn.microsoft.com/library/default.asp?URL=/library/welcome/dsmsdn/deep051099.htm

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups