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