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
Solved

How to find IID values of a COM?

Posted on 2000-05-18
2
651 Views
Last Modified: 2013-11-25
I need to use a COM DLL (an in-process COM server) in an application. Its type library is built into the DLL file. No *_i.c file available. In order to use CoCreateInstance function, I need to know IIDs of the interfaces.

Now how to get the IID vlaues?
0
Comment
Question by:yzmao
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
iDeb earned 200 total points
ID: 2821742
You can use #import yourserver.tlb where tlb is the type library of your COM server dll. This would give access to the IIDs of the interfaces and COM objects in the server.

See an ATL book or MSDN for all the options to the #import directive
0
 
LVL 2

Expert Comment

by:iDeb
ID: 2821797
To see the IIDs you can use the OLE/COM ObjectViewer utility in VisualStudio
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

860 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