Solved

How to find IID values of a COM?

Posted on 2000-05-18
2
646 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
Comment Utility
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
Comment Utility
To see the IIDs you can use the OLE/COM ObjectViewer utility in VisualStudio
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now