A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Newbie Redemption ISafeMailItemPtr question



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old June 4th 09, 06:17 AM posted to microsoft.public.outlook.program_addins
Gabriel
external usenet poster
 
Posts: 13
Default Newbie Redemption ISafeMailItemPtr question

Hi Dmitry,

That sorted me out. This is what I ended up doing:

CComVariant headers;

headers.vt = VT_BSTR;



Redemption::ISafeMailItemPtr redMailPtr;

redMailPtr.CreateInstance(__uuidof(Redemption::Saf eMailItem));

redMailPtr-put_Item(dispItem);

redMailPtr-get_Fields(0x7D001E, &headers);

One more newbie question just out of curiosity, why is it
"__uuidof(Redemption::SafeMailItem)" rather than
"__uuidof(Redemption::ISafeMailItem)"?

Thanks again for all your help!

-Gabriel

"Dmitry Streblechenko" wrote:

Of course. You simply declare a variable.
Have you tried redMailPtr.CreateInstance()?

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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie get_CurrentItem() question Gabriel Add-ins for Outlook 6 April 10th 09 05:49 PM
Newbie Question Robert Add-ins for Outlook 1 July 14th 08 02:11 PM
Quick Newbie Question kalukaley Outlook and VBA 2 February 1st 08 05:05 PM
newbie question msnews.microsoft.com Add-ins for Outlook 5 January 21st 07 09:57 AM
newbie question Mike Archer Outlook and VBA 1 July 17th 06 09:41 PM


All times are GMT +1. The time now is 11:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.