C++ Event ID's

  • Thread starter Thread starter Sahil
  • Start date Start date
S

Sahil

hello,
i m a beginner to ATL Com programming and i m stuck with one of very basic
question i.e. how do i find out the dispatch id's of the events exposed by
ExplorerEvents interface ?


SINK_ENTRY_INFO(1,__uuidof(Outlook::ExplorerEvents),/*dispinterface*/,0xf002
,OnClickButton,&OnClickButtonInfo)

i need to know the thirdparameter dispinterface of the event that i m going
to sink e.g. 0xf002 is the folderchange event of the explorer how do i find
out these id's of the rest of the events. i looked into tlh file but
couldn't find anyway. any help?

thanks,

SH
 
Look at the type library. Or use OutlookSpy (click Explorer, go to the
Events tab). For the Explorer::FolderSwitch event, the dispid is 61442
(0xF002).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Outlook type library is in msoutlX.olb (where X is the version, i.e. it is
msoutl9.olb for Outlook 2000).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Nah i mean how to view the type library means what tool should i use.
opening it in notepad doesn't make sense.
 
Either #import the type library and look at the automatically generated
..tlh/.tli files or open the type library in the OLE/COM object viewer (VS
Tools menu by default).

HTH
Matt Fletcher
 
Back
Top