Solved

Cannot access method in ActiveX object

Posted on 1998-04-08
1
198 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Newbie Thread Programming 1 151
URL for downloading Google Chrome for Win XP 2 152
TEMBEDDEDWB how can i change its user agent ? 8 58
Delphi: making a BW image transparent 10 36
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

805 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