Skip to main content

[archive] IDispatch Interface & Active-X

  • August 22, 2006
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 21 August 2006]

Working with the RichTextLib active-x control & want to intercept the file(s) being dropped onto the control. When I'm processing the dragdrop event, the first parameter is data type IDispatch.

How do I work with this interface? I think this interface will hold the handle of the class or the interface to the class that I eventually want to reference (DataObject). I eventually want to arrive at the DataObject Class & get the name(s) of the files that were dropped.

Any info/ideas would be appreciated. Thanks. Ro

1 reply

[Migrated content. Thread originally posted on 21 August 2006]

Working with the RichTextLib active-x control & want to intercept the file(s) being dropped onto the control. When I'm processing the dragdrop event, the first parameter is data type IDispatch.

How do I work with this interface? I think this interface will hold the handle of the class or the interface to the class that I eventually want to reference (DataObject). I eventually want to arrive at the DataObject Class & get the name(s) of the files that were dropped.

Any info/ideas would be appreciated. Thanks. Ro
The return value of an IDispatch type should be a handle. For instance, if a function is described in the .def file as:
* FDFCreate
* method FDFCreate
METHOD, 2, @FDFCreate
RETURNING "IDispatch*", TYPE 9

the code would look like this:
MODIFY FDF-APP-HANDLE @FDFCreate () GIVING FDF-DOC-HANDLE

and FDF-DOC-HANDLE would be described as:
77 FDF-DOC-HANDLE HANDLE OF FDfDoc.