Solved

How to find IID values of a COM?

Posted on 2000-05-18
2
647 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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.
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…

914 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

15 Experts available now in Live!

Get 1:1 Help Now