Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Peeking into IDispatch

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 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.
Suggested Courses

647 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