![]() |
| 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. |
|
|||||||
| Tags: addin, atl, categories, com, fetching, outlook |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I'm trying to fetch the categories exposed by the Outlook Namespace. I'm
executing this code: CComPtrOutlook::_NameSpace pSession; m_Application-get_Session(&pSession); Outlook::_Categories * pCategories = NULL; pSession-get_Categories(&pCategories); which is raising an exception : Access violation writing location 0x3005ce28. I'm doing this during the OnConnection message of the Application. pSession seems to be valid. Any pointers? Clearly I'm making some bonehead mistake. Thanks! Rod |
| Ads |
|
#3
|
|||
|
|||
|
My code, ( in OL 2007 ) which works:
Outlook::_NameSpacePtr NS; if(NS = spApp-GetNamespace(L"MAPI")){ _CategoriesPtr spCats = NS-Categories; is essentually the same as yours. ( ignoring the smartpointers ) It's executed in the OnConnection event. "Rod Fitzsimmons Frey" Rod Fitzsimmons wrote in message news ![]() I'm trying to fetch the categories exposed by the Outlook Namespace. I'm executing this code: CComPtrOutlook::_NameSpace pSession; m_Application-get_Session(&pSession); Outlook::_Categories * pCategories = NULL; pSession-get_Categories(&pCategories); which is raising an exception : Access violation writing location 0x3005ce28. I'm doing this during the OnConnection message of the Application. pSession seems to be valid. Any pointers? Clearly I'm making some bonehead mistake. Thanks! Rod |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| fetching images | Richard Bibby | Outlook - General Queries | 4 | February 27th 08 01:14 PM |
| Public folder calender categories vs user calander categories | Help me | Outlook - Calandaring | 5 | November 2nd 07 07:44 AM |
| Outlook 2007 Categories are a combo of Categories & Labels in 2003 | Scott Sherman | Outlook - Calandaring | 0 | February 13th 07 04:23 AM |
| Programming custom Categories into Master Categories List | John E. | Outlook - Using Forms | 1 | December 1st 06 03:01 AM |
| Outlook-Categories-Print labels by categories | jazzed4life | Outlook - Using Contacts | 3 | March 21st 06 10:08 AM |