View Single Post
  #1  
Old April 23rd 08, 06:11 PM posted to microsoft.public.outlook.program_addins
Rod Fitzsimmons Frey
external usenet poster
 
Posts: 1
Default 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
Ads