|
| Re: Catching COM events |
 |
Fri, 6 Jul 2007 12:30:38 -0700 |
"LarryJ" <LarryJ33@austin.rr.com> wrote in message
news:468e8b76$1@newsgroups.borland.com...
> Once in a while one of the COM functions will fail. When a COM
> function fails, the COM code throws up an error message box
> before returning to my app so I am unable to handle this failure
> gracefully.
That is very unusual for a COM object to do. Are you sure that the
code is not simply throwing an Exception that you are not catching
instead?
> Is there anyway I can set up my code so the COM error message
> box can be handled by my application?
That depends on where the message box is actually coming from. If it
truely is inside the COM object itself, then there is no possibility
to handle it unless the COM object explicitally exposes such
functionality to you.
Gambit
|
| Post Reply
|
| Catching COM events |
 |
Fri, 6 Jul 2007 13:35:35 -0500 |
I am using BCB6.0. I have created a COM component on the Borland component
pallet by importing the COM object Type Library and using the create
component feature. Once in a while one of the COM functions will fail. When
a COM function fails, the COM code throws up an error message box before
returning to my app so I am unable to handle this failure gracefully. Is
there anyway I can set up my code so the COM error message box can be
handled by my application?
Thanks
Larry Johnson.
|
| Post Reply
|
| Re: Catching COM events |
 |
Fri, 6 Jul 2007 14:41:30 -0500 |
The error is the HRCHECK coming from the OLE_CHECK. My other COM apps have
the NO_PROMPT_ON_HRCHECK_FAILURE in the condition list. I will add this to
my current project condition list and see if it solves the problem.
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:468e98b4$1@newsgroups.borland.com...
>
|
| Post Reply
|
|
|
|
|
|
|
|
|
|