Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / June 2005

Tip: Looking for answers? Try searching our database.

Property Page Title

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TC - 20 Jun 2005 18:20 GMT
I've written an Outlook Add-In in VC++/ATL (VS .Net 2003). When adding the
property page I want pass in an instance of the PropertyPage object instead
of the ProgID. The problem with this approach is that Outlook ignores the
PropertyPages.Add method's Title parameter. I've added a Caption property
(dispid is DISPID_CAPTION) to my object's interface and the ATL property map
(I've tried using PROP_ENTRY and PROP_ENTRY_EX) but it's not working. If I
set a breakpoint on the property map it's never called. Has anyone else done
this? Any suggestions would be appreciated.

TC
Dmitry Streblechenko - 20 Jun 2005 18:43 GMT
AFAIK this is a known problem. The only workaround is to pass the prog id
instead of a live object.
Why can't you pass a prog id?

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

> I've written an Outlook Add-In in VC++/ATL (VS .Net 2003). When adding the
> property page I want pass in an instance of the PropertyPage object
[quoted text clipped - 6 lines]
>
> TC
TC - 28 Jun 2005 01:52 GMT
Dimtry,

Thanks. That's what I thought but I wasn't able to find any documentation on
the problem. (I know, there are a lot of undocumented Outlook bugs.) I tried
retrieveing the PropertyPage after adding it but that fails too.

I can pass the ProgID but it would be more efficient to pass in an instance
of the PropertyPage. I wanted to initialize it with the component that reads
and writes the configuration settings instead of creating a new instance.

Thanks,

TC

> AFAIK this is a known problem. The only workaround is to pass the prog id
> instead of a live object.
[quoted text clipped - 15 lines]
>>
>> TC
Dmitry Streblechenko - 28 Jun 2005 19:44 GMT
yep, passing an already inialized instance of a propety page would be more
efficient. But we have to use what we can...
Since you can implement both the addin and the property page in the same
dll, ol' good global variables is the way to go...

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

> Dimtry,
>
[quoted text clipped - 30 lines]
>>>
>>> TC
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.