C++ Event ID's

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
 
D

Dmitry Streblechenko \(MVP\)

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
 
D

Dmitry Streblechenko \(MVP\)

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
 
S

Sahil

Nah i mean how to view the type library means what tool should i use.
opening it in notepad doesn't make sense.
 
M

Matt Fletcher

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top