![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Q1: In OnConnection function, the follow code can work. I'm using outlook2003.
Outlook::MAPIFolderPtr pSentFd = m_NSPtr-GetDefaultFolder(Outlook:: olFolderSentMail); pSentFdItems = pSentFd-GetItems(); ItemsItemAddEvent: ![]() But following couldn't, why? m_NSPtr-GetFolders(); then loop to search the specified folder, i'm sure i found the correct folder, then if(HotPtr != NULL)//HotPtr is the correct MAPIFolderPtr for olFolderSentMail. { CComPtrOutlook::_Items HotInboxItems = HotPtr-GetItems(); long ll = HotInboxItems-GetCount(); ItemsItemAddEvent: ![]() } But the event could not be fired. Q2: How could i get MailItem of the mail receive from HTTP hotmail? I don't know how to DispEventAdvise on hotmail's message store(I add a HTTP account which is MS's hotmail), i use the code above to set event on the folder of hotmail(and i'm sure the folder is correct folder), but couldn't work. Is there a way to get hotmail's(INTERSTOR) "Namespace" so that i can get its folder to set the current advise? In a word, i want to get the MailItem of HTTP mail from hotmail to process, is that clear? -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...ddins/200904/1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Greek Fonts Dont work in Office but work in Windows | George | Outlook - Using Contacts | 0 | May 16th 07 10:33 PM |
How to set up 3 days at work 3 days off work repeating? | Glenn Tricarico | Outlook - Calandaring | 2 | February 12th 07 11:57 PM |
How do I customize my work week if I work different hours daily? | Pratherer | Outlook - Calandaring | 1 | October 31st 06 05:57 AM |
e-mail alerts don't work,setup but don't work- | Studmn1 | Outlook - General Queries | 3 | August 24th 06 09:38 PM |
Getting no Events ! - IDispEventSimpleImpl , DispEventAdvise | davidb | Add-ins for Outlook | 3 | June 13th 06 08:31 AM |