CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Location
    Australia
    Posts
    137

    Com Exception Aware

    I am using VB6 to build custom processes for a software product going by the name of Goldmine.

    The Goldmine documentation recommends access via Goldmine's Com Server.
    It instructs you to add a reference to the Goldmine 6.7 Type Library to your project. This was available so I used.

    The documentation later mentions "your application needs to be COM Exception aware. For instance, if a login fails, then a COM Exception of type Access Denied is passed to your application"

    My question is "do I have to set up VB6 to do this?" I am assuming it is part of the functions available with the software product?

    The documentation does not clearly illustrate how this is to be achieved.
    Maybe I need to read between the lines and use functions?

    Does anyone know if there is VB6 specific components/references I should be employing here?
    TT

  2. #2
    Join Date
    Mar 2002
    Location
    Izhevsk, Udmurtia, Russia
    Posts
    930

    Re: Com Exception Aware

    You should use the "On Error ..." statement to make the error handling. Like this:
    Code:
    Dim gm As Goldmine
    
    On Error Resume Next
    
    Set gm = New Goldmine
    gm.Login "login", "password"
    With best wishes,
    Vita
    -----------------------
    Russian Software Development Network -- http://www.rsdn.ru

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