-
March 14th, 2006, 08:46 PM
#1
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
-
March 14th, 2006, 11:33 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|