![]() |
Fetching Outlook Categories: ATL / COM add-in
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 |
Fetching Outlook Categories: ATL / COM add-in
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 ... 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 |
All times are GMT +1. The time now is 12:35 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-2006 OutlookBanter.com