Home > Archive > dBASE Windows API > March 2006 > accessing OLE events









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author accessing OLE events
Christian K

2006-03-09, 8:24 pm

I'm attempting to add additional processing to an ActiveX control's
event. I was unable to utilitze any properties/methods/events when
implementing with the ActiveX class, as they were not visible or
defined.

However, when I invoke it thru OLE automation from the OleAutoClient
class, I can inspect the properties/methods/events, and access/call the
properties & methods. I'd now like to define a function to trigger for
specific events of the ActiveX, but have had no success. Everytime I
attempt to define a function for the event, it shows up as a seperate
user-defined method.

Anyone have any expereince in this area?

Cheers,
Christian K.
Marc VdB

2006-03-11, 7:23 am

Hi Christian,



> I'm attempting to add additional processing to an ActiveX control's
> event. I was unable to utilitze any properties/methods/events when
> implementing with the ActiveX class, as they were not visible or
> defined.


events in COM are one of the mysteries in this technology, at least to me.
I came to the conclusion, that they either work or not (duh), but there is
no real clue why they work or why the refuse to do.
I fear i cannot be of great help here...

> However, when I invoke it thru OLE automation from the OleAutoClient
> class, I can inspect the properties/methods/events, and access/call the
> properties & methods. I'd now like to define a function to trigger for
> specific events of the ActiveX, but have had no success. Everytime I
> attempt to define a function for the event, it shows up as a seperate
> user-defined method.


Hmm, did you try to do it with a codeblock ?

CU, MArc


Christian K

2006-03-21, 3:32 am

Marc,

Yeah, tried the codeblock, without luck. I get the impression that
these types of instances generally mean the ActiveX is using some VB
component which obviously dBase doesn't have. Thanks for the suggestion.


Cheers,
Christian K.



Marc VdB wrote:

> Hi Christian,
>
>
>
>
> events in COM are one of the mysteries in this technology, at least
> to me. I came to the conclusion, that they either work or not (duh),
> but there is no real clue why they work or why the refuse to do. I
> fear i cannot be of great help here...
>
>
> Hmm, did you try to do it with a codeblock ?
>
> CU, MArc




--

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com