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

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???
 
D

Dmitry Streblechenko

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
 

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