다음은 제가 "microsoft.public.vc.activex.templatelib" 에 올렸던 답변 내용입니다.
-----------------------------------------------------------------------
Using "ITypeLib", you can archive your purpose.
The tool named "OLE/COM Object Viewer" within VS.NET also show you "Type
Library" with "ITypeLib" interface.
As you know, the tool also show you the list of event.
Below, sample view of "ITypeLib Viewer" implemented by "OLE/COM Object
Viewer"
[
uuid(9D44F1E2-F5AF-4E00-856F-DF7CE9E5FE1E),
nonextensible
]
dispinterface _DIDocsServerEvent {
properties:
methods:
[id(0x00000001)]
void OnLoad([in] IDispatch* oEvent);
[id(0x00000002)]
void OnValueChanged();
[id(0x00000003)]
void OnRowIndexChanged([in] BSTR bindingXPath);
[id(0x00000004)]
void OnRepeatFocusChanged([in] unsigned long dwCookie);
[id(0x00000005)]
void OnForceViewChanged();
[id(0x00000006)]
void OnSubmitRequest([in] IDispatch* oEvent);
[id(0x00000007)]
void OnSwitchView([in] IDispatch* oEvent);
};
--
======= (c) .NETXpert ==========
url :
http://www.dotnetxpert.com
eml : kevin@dotnetxpert.com
msn: kevin025@magicn.com
MCSD.NET
==============================
"Javier" <jfernandez@hotmail.com> wrote in message
news:ONfoT8MkEHA.3664@TK2MSFTNGP12.phx.gbl...
> Do you know if there is way to get the name of an event (as a wchar or
char
> *) from its DISPIP value ?
>
> Basically what I need is to get the name of the event that it is fired
> (Event Sink) given its ID.
>
> Thanks,
>
>