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
|