-
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?
-
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"