Thread: OnConnection
View Single Post
  #2  
Old September 3rd 07, 11:37 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default OnConnection

Use OnStartupComplete callback instead - by the time it is executed, Outlook
already has a valid MAPI session.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"MON205" wrote in message
...
Hello,
I have a problem with my add-in, that some simple OOM or MAPI functions
fail
in the context of the OnConnection event - my add-in inherited from the
_IDTExtensibility2.
As an example, the GetFolderFromID() function throws a_com_error exception
with unknown error( 0x96a40107 ). This occur with some folders in a PST.
Other folders and other PSTs don't have this problem.
The same function succeeded when I call it with the same EntryID & StoreID
but after leaving the context of the OnConnection event.
Now, simply, the question is, does all the PSTs loaded completely before
linking (calling OnConnection)with the add-ins?!!!



Ads