Can't sink the inspectors event in the Outlook2007

P

peter

I created a Com-Addin base on the outlook, below code works well in the
outlook2003, but in the outlook2007, it will throw an exception from the
first line. And this piece of code is called in the onconnection() method
inherit from the interface IDTExtensibility2.

HRESULT hr =
m_inspectors->QueryInterface(__uuidof(IConnectionPointContainerPtr),
(void**)&pCPCtr);
pCPCtr->FindConnectionPoint(IID_IInspectorsEvents, &m_inspectorsEvents));
m_inspectorsEvents->Advise(this, &m_inspectorsEventsCookie));

MSOUTL9.OLB(outlook 2000 library) is imported, do I need to change it to 07
library to support outlook07? Where can I find the office 07 library? I try
to find it under the office12 folder, but I didn't get it.
 

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