Solved

Cannot access method in ActiveX object

Posted on 1998-04-08
1
200 Views
Last Modified: 2010-04-06
I'm using the Filenet Watermark component to develop an apps. I had imported the ActiveX component in Delphi so I can use them on my form. I can access all the method of the object except for that,... 2 properties of the are of IDispatch type. Those are Image and Document. I must use some method in those sub-objects, but I cannot access them. CodeInsigth show me only the IDispatch method but not the other.
0
Comment
Question by:pjroy
1 Comment
 

Accepted Solution

by:
BigMadDrongo earned 50 total points
ID: 1361353
You need to create an OleVariant, and set this variant equal to the IDispatch properties.  This will convert the variant to type VT_IDISPATCH, which is a variant type of a pointer to an IDispatch interface.  You will then be able to use the variant as you would an object to access it's methods and properties.  This also works for IUnknown interfaces as well.

BigMadDrongo
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
drawing animated level bar based on numbers 3 111
Error E2158 compiling with Delphi XE10 Seattle 2 123
tidtcpserver connection lost handle 2 109
IP without any Dots 1 50
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question