View Single Post
  #3  
Old July 10th 07, 05:00 PM posted to microsoft.public.outlook.program_addins
Pradeep Singh
external usenet poster
 
Posts: 4
Default Accessing Outlook while addin is running

Hi Ken,

Thanks a lot for response. I can place DoEvents in the loop( say after
completing processing of each mail in the loop). But I could not find
ApplicationPtr-DoEvents for Outlook's ApplicationPtr. Can you please help
me in achieving DoEvents in C++ COM Addin for Outlook.

Regards,
Pradeep

"Ken Slovak - [MVP - Outlook]" wrote in message
...
If you're running a tight code loop that takes a lot of time that's to be
expected. Either call the process a number of times with a smaller count
of items to work with or place strategic DoEvents calls in your looping
code.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Pradeep Singh" wrote in message
...
I'm trying to process all the emails of a folder using a COM addin. I
get the folder (MAPIFolderPtr). From that I can get mails using
GetItems. This whole loop of going through mails takes quite a while.
And unfortunately Outlook does not respond to keyboard commands ( e.g.
ctrl N) during this, also the preview pane does not change even if I
choose
another e-mail ( mouse is working). Is this a known issue with COM
addins or I need to take care of something special to avoid this.

Another issue is, if I fire print (-PrintOut) on any item this call
is not honoured until I finish all the processing of the folder and
return from my COM adding control.
It would be great if someone could help me or point me to right
direction.


Kind Regards,
Pradeep






Ads