tags:

views:

42

answers:

2

Hi all,

I need to implement GetIDsOfNames in my C++ application and I have no idea how to do that. I understand that I should implement GetTypeInfo, GetTypeInfoCount for that. I found a code sample which uses LIBID, but I don't have LIBID, and I don't know where to get one.

What I really need is a good explanation of IDispatch interface internals...

+1  A: 

Check the OLE Automation Protocol

Sheng Jiang 蒋晟
As to GetTypeInfo, GetTypeInfoCount, why these functions are required, where are those type information used?
lz_prgmr
Required for late binding languages like VB or javascript. Do you want to support these languages?
Sheng Jiang 蒋晟
A: 

This is not a good explanation of IDispatch internals, but if you have an .idl file for your interfaces you can generate a type library and include the latter into the COM server, then just use IDispatchImpl than will do the work for you.

sharptooth