PC Review


Reply
Thread Tools Rate Thread

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

 
 
Moasat
Guest
Posts: n/a
 
      29th Nov 2003
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???

 
Reply With Quote
 
 
 
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      3rd Dec 2003
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


"Moasat" <(E-Mail Removed)> wrote in message
news:3fc824b3$0$42227$(E-Mail Removed)...
> 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???
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to validate a Custom Property Page =?Utf-8?B?SmFjayBaaGFuZw==?= Microsoft Outlook Program Addins 1 9th Feb 2006 07:22 PM
Property Page in Addin Nauman Khan Microsoft Outlook Program Addins 5 23rd Aug 2004 07:11 PM
COM Addin functions from Property Page OCX =?Utf-8?B?amFjaw==?= Microsoft Outlook Form Programming 1 8th Apr 2004 09:34 PM
Custom options page in addin =?Utf-8?B?QW1hcm5hdGg=?= Microsoft C# .NET 2 27th Jan 2004 12:02 PM
immediately resposne to changes in a custom property page? tomer Microsoft Outlook Program Addins 1 25th Nov 2003 07:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:19 PM.