?
Solved

Peeking into IDispatch

Posted on 1998-05-04
1
Medium Priority
?
300 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 60 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

Industry Leaders: 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

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

801 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