Solved

Cannot access method in ActiveX object

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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

628 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