Solved

Cannot access method in ActiveX object

Posted on 1998-04-08
1
201 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: 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 121
Multiple image collision 13 106
How to Get Images From Server using App Tethering 11 52
Delphi Firemonkey send email on Android 1 80
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…

734 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