Solved

Peeking into IDispatch

Posted on 1998-05-04
1
298 Views
Last Modified: 2013-11-18
I'm somewhat new to OLE Automation and am having a difficult time finding concise and relatively complete documentation on working with the standard COM interface IDispatch.

There is the method IDispatch::GetIDsOfNames to get the DISPID of a known method.  But what if I don't know the names?  How can the names of the available methods be retrieved?
0
Comment
Question by:rayb
[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
 
LVL 7

Accepted Solution

by:
galkin earned 30 total points
ID: 1172028
GetIDsOfNames is passed array of names and allocated aray for IDs. You must implement this method to fill in IDs array. Information about properties and methods names and IDs is stored in type library so DispGetIDsOfNames standard wrapper function should be used
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

696 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