1. Daniel Vivier
  2. PowerBuilder
  3. Friday, 20 May 2022 22:15 PM UTC

Am I right in thinking that if I have a non-visual COM object, that I can connect to with ConnectToNewObject on an OleObject, there is no way to see or process events that it might throw?

I know about using a user object OleObject so I can catch the Error and ExternalException events, but that doesn't cover any custom events that the COM object defines.

I also know about the ways to use visual ActiveX objects and see their events. 


Bruce Armstrong Accepted Answer Pending Moderation
  1. Friday, 20 May 2022 23:48 PM UTC
  2. PowerBuilder
  3. # 1

Take a look at the answer I gave here (bottom of the page):


  1. Daniel Vivier
  2. Saturday, 21 May 2022 00:03 AM UTC
Thanks, Bruce, though clearly that would be a LOT of work. You'd have to really need it and have no better way to achieve the same results with either a visual COM object or a nonvisual one without events.
  1. Helpful
  1. Bruce Armstrong
  2. Saturday, 21 May 2022 00:15 AM UTC
Visual COM objects were simpler when Microsoft still supported the interop forms toolkit However, that's gone the way of the dodo.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1

There are no replies made for this question yet.
However, you are not allowed to reply to this question.