Thread: OnConnection
View Single Post
  #8  
Old September 6th 07, 05:38 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default OnConnection

So it only happens for one particular PST, not for any other PST or mailbox,
right?
Is there anything different about that PST?

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

"MON205" wrote in message
...
I'm shocked just like you...
Yes 100%... I'm getting the StoreID and EntryID by looping for all PSTs
and
sub folders. And to be sure, I copied the StoreID and EntryID from the
Outlook Spy -GREAT PRODUCT- and used them as constants(GetFolderFromID(
"xxx", "xxxxxx"), and the same error exist with this strange PST when
calling
from OnConnection or OnStartupComp. And I used the same call to
GetFolderFromID in a handler for a button, and it succeeded.

"Dmitry Streblechenko" wrote:

The error looks like MAPI_E_INVALID_ENTRYID. Are you absolutely, 100%,
sure
that the entry ids belong to a store that exists in the current session?
Where do these values come from?

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

"MON205" wrote in message
...
I always do that!!!

"Dmitry Streblechenko" wrote:

Do you specify *both* the folder and the store entry ids when calling
GetFolderFromID?

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






Ads