CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Error Handling

  1. #1
    Join Date
    Oct 1999
    Location
    germany
    Posts
    8

    Error Handling

    I have some Classes and Functions in a Activex dll. And some Classes call methods of other Classes.
    How and where should I do the Error Handling ?
    Is there any other way as

    on error goto



    ?




  2. #2

    Re: Error Handling

    I think you want to use err.raise. This will allow an error in a called function to be handled by an error handler in the caller. See the documentation for more info to see if this will solve your problem.

    Charlie Zimmerman
    http://www.freevbcode.com


  3. #3
    Join Date
    Aug 1999
    Location
    Srilanka
    Posts
    25

    Re: Error Handling

    You can write a common Goto DLL and use that DLL for handling all the errors. Inside a class or a function you will just call Error handling DLL when an Error occurs. This might help you.
    Amendra



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

Featured