COM Addin with Custom Property Page in C++ ONLY. (No ATL/MFC)

  • Thread starter Thread starter Moasat
  • Start date Start date
M

Moasat

Can anyone supply sample code for creating an addin for Outlook that implements
a custom propeprty page in C++ without using ATL or MFC. I've been looking at
the MsgDump sample and its awesome. Its only drawback is that it does not have
any custom property page handling and I can't seem to add it in. My page shows
up but when I click on it, Outlook says it can't be displayed. Here's some
code fragments...

My CustPropertyPage class simply extends IPropertyPage...

class CCustPropertyPage : public IPropertyPage
{
....
}

I've implemented all of the virtual functions of IPropertyPage. Most I just
implement as return E_NOTIMPL; but it doesn't seem that any of those are even
being called before Outlook complains. Is there something else missing here???

There just doesn't seem to be any sort of documentation for plain C++
developers on this.

Can anyone help???
 
Your property page is essentially an ActiveX control, not just a simple
class implementing IPropertyPage, so you need to implement (or derive from)
a regular Active X control.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top