Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to find IID values of a COM?

Posted on 2000-05-18
2
Medium Priority
?
662 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 800 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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…
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…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

885 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