Solved

Cannot access method in ActiveX object

Posted on 1998-04-08
1
195 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now